From 147e71502f8f08f986c35bb1387dc0e7543dbcb7 Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 23 Jun 2020 19:53:43 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick6/issues/85 --- magick/annotate.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/magick/annotate.c b/magick/annotate.c index 663a3c4cc..32a08e767 100644 --- a/magick/annotate.c +++ b/magick/annotate.c @@ -327,7 +327,8 @@ MagickExport MagickBooleanType AnnotateImage(Image *image, height=(size_t) ceil(metrics.ascent-metrics.descent+ draw_info->interline_spacing-0.5); if (height == 0) - height=(size_t) draw_info->pointsize; + height=(size_t) ceil(draw_info->pointsize+draw_info->interline_spacing- + 0.5); switch (annotate->gravity) { case UndefinedGravity: