[head] Add is_expanded() internally

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

View File

@ -72,12 +72,14 @@ struct head
UNDERLINE = 1u<<2,
OUTLINE = 1u<<3,
SHADOW = 1u<<4,
CONDENSED = 1u<<5
CONDENSED = 1u<<5,
EXPANDED = 1u<<6,
};
bool is_bold () const { return macStyle & BOLD; }
bool is_italic () const { return macStyle & ITALIC; }
bool is_condensed () const { return macStyle & CONDENSED; }
bool is_expanded () const { return macStyle & EXPANDED; }
bool sanitize (hb_sanitize_context_t *c) const
{