Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/771
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Sep 21, 2017
1 parent a25142f commit bb11d07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion coders/caption.c
Expand Up @@ -208,10 +208,13 @@ static Image *ReadCAPTIONImage(const ImageInfo *image_info,
high,
low;

ssize_t
n;

/*
Auto fit text into bounding box.
*/
for ( ; ; draw_info->pointsize*=2.0)
for (n=0; n < 32; n++, draw_info->pointsize*=2.0)
{
text=AcquireString(caption);
i=FormatMagickCaption(image,draw_info,split,&metrics,&text);
Expand Down

0 comments on commit bb11d07

Please sign in to comment.