Changeset 8026
- Timestamp:
- 05/23/12 21:51:35 (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ImageMagick/branches/ImageMagick-6/coders/caption.c
r8021 r8026 178 178 width=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); 179 179 height=(size_t) floor(metrics.height+draw_info->stroke_width+0.5); 180 if ((width > image->columns) ||(height > image->rows))180 if ((width > image->columns) && (height > image->rows)) 181 181 break; 182 draw_info->pointsize *=2.0;182 draw_info->pointsize++; 183 183 } 184 draw_info->pointsize/=2.0;185 184 /* 186 185 Scale text down to fit bounding box. … … 199 198 width=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); 200 199 height=(size_t) floor(metrics.height+draw_info->stroke_width+0.5); 201 if ((width > image->columns) || (height >image->rows))200 if ((width <= image->columns) && (height <= image->rows)) 202 201 break; 203 draw_info->pointsize ++;202 draw_info->pointsize--; 204 203 } 205 draw_info->pointsize--;206 204 } 207 205 i=FormatMagickCaption(image,draw_info,MagickTrue,&metrics,&caption);
Note: See TracChangeset
for help on using the changeset viewer.
