(void) FormatLocaleString(geometry,MagickPathExtent,"%+g%+g",MagickMax(
draw_info->direction == RightToLeftDirection ? (double) image->columns-
metrics.bounds.x2 : -metrics.bounds.x1,0.0),draw_info->gravity ==
- UndefinedGravity ? metrics.ascent : 0.0);
+ UndefinedGravity ? MagickMax(metrics.ascent,metrics.bounds.y2) : 0.0);
(void) CloneString(&draw_info->geometry,geometry);
status=AnnotateImage(image,draw_info,exception);
if (image_info->pointsize == 0.0)
(void) FormatLocaleString(geometry,MagickPathExtent,"%+g%+g",
draw_info->direction == RightToLeftDirection ? (double) image->columns-
metrics.bounds.x2 : 0.0,draw_info->gravity == UndefinedGravity ?
- metrics.ascent : 0.0);
+ MagickMax(metrics.ascent,metrics.bounds.y2) : 0.0);
(void) CloneString(&draw_info->geometry,geometry);
status=AnnotateImage(image,draw_info,exception);
if (image_info->pointsize == 0.0)