[head] Add is_expanded() internally
Fixes https://github.com/harfbuzz/harfbuzz/issues/3263
This commit is contained in:
parent
a7a3608553
commit
f3f848b506
|
@ -72,12 +72,14 @@ struct head
|
||||||
UNDERLINE = 1u<<2,
|
UNDERLINE = 1u<<2,
|
||||||
OUTLINE = 1u<<3,
|
OUTLINE = 1u<<3,
|
||||||
SHADOW = 1u<<4,
|
SHADOW = 1u<<4,
|
||||||
CONDENSED = 1u<<5
|
CONDENSED = 1u<<5,
|
||||||
|
EXPANDED = 1u<<6,
|
||||||
};
|
};
|
||||||
|
|
||||||
bool is_bold () const { return macStyle & BOLD; }
|
bool is_bold () const { return macStyle & BOLD; }
|
||||||
bool is_italic () const { return macStyle & ITALIC; }
|
bool is_italic () const { return macStyle & ITALIC; }
|
||||||
bool is_condensed () const { return macStyle & CONDENSED; }
|
bool is_condensed () const { return macStyle & CONDENSED; }
|
||||||
|
bool is_expanded () const { return macStyle & EXPANDED; }
|
||||||
|
|
||||||
bool sanitize (hb_sanitize_context_t *c) const
|
bool sanitize (hb_sanitize_context_t *c) const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue