[style] Use head->macStyle.isExtended in style fallback

https://github.com/harfbuzz/harfbuzz/issues/3263
This commit is contained in:
Behdad Esfahbod 2021-10-21 09:56:47 -06:00
parent f3f848b506
commit c6557747ef
1 changed files with 3 additions and 1 deletions

View File

@ -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