From c6557747ef2d5b5effeaa4c6ff97a0d274e0ca6c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 21 Oct 2021 09:56:47 -0600 Subject: [PATCH] [style] Use head->macStyle.isExtended in style fallback https://github.com/harfbuzz/harfbuzz/issues/3263 --- src/hb-style.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hb-style.cc b/src/hb-style.cc index dfb1017c8..f1b44cea5 100644 --- a/src/hb-style.cc +++ b/src/hb-style.cc @@ -113,7 +113,9 @@ hb_style_get_value (hb_font_t *font, hb_style_tag_t style_tag) case HB_STYLE_TAG_WIDTH: return face->table.OS2->has_data () ? face->table.OS2->get_width () - : (face->table.head->is_condensed () ? 75 : 100); + : (face->table.head->is_condensed () ? 75 : + face->table.head->is_expanded () ? 125 : + 100); case HB_STYLE_TAG_WEIGHT: return face->table.OS2->has_data () ? face->table.OS2->usWeightClass