diff options
author | Ebrahim Byagowi <ebrahim@gnu.org> | 2019-08-10 14:05:40 +0430 |
---|---|---|
committer | Ebrahim Byagowi <ebrahim@gnu.org> | 2019-08-10 14:05:40 +0430 |
commit | d835004502c801a8a16cc436a38900e548ecde52 (patch) | |
tree | e3b5234643a6cb3594a9fec6b8f4df9e197fc58d /pango/pangofc-font.c | |
parent | 36a55406a86ceee67ee720bc81eb4c7c00fce267 (diff) | |
download | pango-d835004502c801a8a16cc436a38900e548ecde52.tar.gz |
Use latest version of metrics naming in pangofc-font
Diffstat (limited to 'pango/pangofc-font.c')
-rw-r--r-- | pango/pangofc-font.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pango/pangofc-font.c b/pango/pangofc-font.c index 98e77288..21644b57 100644 --- a/pango/pangofc-font.c +++ b/pango/pangofc-font.c @@ -365,16 +365,16 @@ get_face_metrics (PangoFcFont *fcfont, #if HB_VERSION_ATLEAST(2,5,4) hb_position_t position; - if (hb_ot_metrics_get_position (hb_font, HB_OT_METRICS_UNDERLINE_SIZE, &position)) + if (hb_ot_metrics_get_position (hb_font, HB_OT_METRICS_TAG_UNDERLINE_SIZE, &position)) metrics->underline_thickness = position; - if (hb_ot_metrics_get_position (hb_font, HB_OT_METRICS_UNDERLINE_OFFSET, &position)) + if (hb_ot_metrics_get_position (hb_font, HB_OT_METRICS_TAG_UNDERLINE_OFFSET, &position)) metrics->underline_position = position; - if (hb_ot_metrics_get_position (hb_font, HB_OT_METRICS_STRIKEOUT_SIZE, &position)) + if (hb_ot_metrics_get_position (hb_font, HB_OT_METRICS_TAG_STRIKEOUT_SIZE, &position)) metrics->strikethrough_thickness = position; - if (hb_ot_metrics_get_position (hb_font, HB_OT_METRICS_STRIKEOUT_OFFSET, &position)) + if (hb_ot_metrics_get_position (hb_font, HB_OT_METRICS_TAG_STRIKEOUT_OFFSET, &position)) metrics->strikethrough_position = position; #endif } |