Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick6/issues/145
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Apr 10, 2021
1 parent 715f6ab commit bc7f4f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions magick/annotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1482,6 +1482,8 @@ static MagickBooleanType RenderFreetype(Image *image,const DrawInfo *draw_info,
}
metrics->pixels_per_em.x=face->size->metrics.x_ppem;
metrics->pixels_per_em.y=face->size->metrics.y_ppem;
metrics->ascent=(double) face->size->metrics.ascender/64.0;
metrics->descent=(double) face->size->metrics.descender/64.0;
if (face->size->metrics.ascender == 0)
{
/*
Expand All @@ -1491,8 +1493,6 @@ static MagickBooleanType RenderFreetype(Image *image,const DrawInfo *draw_info,
if (face->size->metrics.descender == 0)
metrics->descent=face->size->metrics.y_ppem/-3.5;
}
metrics->ascent=(double) face->size->metrics.ascender/64.0;
metrics->descent=(double) face->size->metrics.descender/64.0;
metrics->width=0;
metrics->origin.x=0;
metrics->origin.y=0;
Expand Down

0 comments on commit bc7f4f5

Please sign in to comment.