summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-07-05 12:47:36 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-07-05 15:47:23 -0400
commit58ac7ba20d6ea23580cc5c3f2758cab0df7a9d59 (patch)
tree70d2536411ea456955910d7939cb440b44956ac3
parentd75d9598e8b0a704c7bbfbbc61877386b6a86327 (diff)
downloadpango-58ac7ba20d6ea23580cc5c3f2758cab0df7a9d59.tar.gz
win32: Set line height in metrics
Following information found here: https://docs.microsoft.com/en-us/windows/win32/gdi/string-widths-and-heights
-rw-r--r--pango/pangowin32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pango/pangowin32.c b/pango/pangowin32.c
index 630898e0..6f60a70c 100644
--- a/pango/pangowin32.c
+++ b/pango/pangowin32.c
@@ -575,6 +575,7 @@ pango_win32_font_get_metrics (PangoFont *font,
metrics->ascent = tm.tmAscent * PANGO_SCALE;
metrics->descent = tm.tmDescent * PANGO_SCALE;
+ metrics->height = (tm.tmHeight + tm.tmInternalLeading + tm.tmExternalLeading) * PANGO_SCALE;
metrics->approximate_char_width = tm.tmAveCharWidth * PANGO_SCALE;
coverage = pango_win32_font_get_coverage (font, language);