diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-07-05 12:47:36 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-07-05 15:47:23 -0400 |
commit | 58ac7ba20d6ea23580cc5c3f2758cab0df7a9d59 (patch) | |
tree | 70d2536411ea456955910d7939cb440b44956ac3 | |
parent | d75d9598e8b0a704c7bbfbbc61877386b6a86327 (diff) | |
download | pango-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.c | 1 |
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); |