From 31fa3892947138c7950303ea3719bb5ceb813625 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 10 Dec 2015 16:38:29 +0100 Subject: [PATCH] [ft] Use ftface->size->metrics for font extent info --- src/hb-ft.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hb-ft.cc b/src/hb-ft.cc index 682acb7ed..eed1787da 100644 --- a/src/hb-ft.cc +++ b/src/hb-ft.cc @@ -374,9 +374,9 @@ hb_ft_get_font_h_extents (hb_font_t *font HB_UNUSED, { const hb_ft_font_t *ft_font = (const hb_ft_font_t *) font_data; FT_Face ft_face = ft_font->ft_face; - metrics->ascender = ft_face->ascender; - metrics->descender = ft_face->descender; - metrics->line_gap = ft_face->height - (ft_face->ascender - ft_face->descender); + metrics->ascender = ft_face->size->metrics.ascender; + metrics->descender = ft_face->size->metrics.descender; + metrics->line_gap = ft_face->size->metrics.height - (ft_face->size->metrics.ascender - ft_face->size->metrics.descender); if (font->y_scale < 0) { metrics->ascender = -metrics->ascender;