2016-06-12 7.0.2-1 Cristy <quetzlzacatenango@image...>
* Distort no longer converts grayscale image to sRGB (reference
https://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=29895).
+ * Don't return a zero bounding box for QueryMultilineFontMetrics() (reference
+ https://github.com/ImageMagick/ImageMagick/issues/222).
2016-06-12 7.0.2-0 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.2-0, GIT revision 10884:f0e15e8:20160612.
if (ft_status != 0)
continue;
if ((p == draw_info->text) || (bounds.xMin < metrics->bounds.x1))
- metrics->bounds.x1=(double) bounds.xMin;
+ if (bounds.xMin != 0)
+ metrics->bounds.x1=(double) bounds.xMin;
if ((p == draw_info->text) || (bounds.yMin < metrics->bounds.y1))
- metrics->bounds.y1=(double) bounds.yMin;
+ if (bounds.yMin != 0)
+ metrics->bounds.y1=(double) bounds.yMin;
if ((p == draw_info->text) || (bounds.xMax > metrics->bounds.x2))
- metrics->bounds.x2=(double) bounds.xMax;
+ if (bounds.xMax != 0)
+ metrics->bounds.x2=(double) bounds.xMax;
if ((p == draw_info->text) || (bounds.yMax > metrics->bounds.y2))
- metrics->bounds.y2=(double) bounds.yMax;
+ if (bounds.yMax != 0)
+ metrics->bounds.y2=(double) bounds.yMax;
if (((draw_info->stroke.alpha != TransparentAlpha) ||
(draw_info->stroke_pattern != (Image *) NULL)) &&
((status != MagickFalse) && (draw_info->render != MagickFalse)))