*text;
/*
- Scale text to fit bounding box height.
+ Scale text up to fit bounding box.
*/
for ( ; ; )
{
(void) status;
width=(size_t) floor(metrics.width+draw_info->stroke_width+0.5);
height=(size_t) floor(metrics.height+draw_info->stroke_width+0.5);
- if (height > image->rows)
+ if ((width > image->columns) || (height > image->rows))
break;
draw_info->pointsize*=2.0;
}
draw_info->pointsize/=2.0;
/*
- Scale text to fit bounding box.
+ Scale text down to fit bounding box.
*/
for ( ; ; )
{