From f3f848b5066f3e6680ae5f68a1047085e7b8d59f Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 21 Oct 2021 09:54:02 -0600 Subject: [PATCH] [head] Add is_expanded() internally Fixes https://github.com/harfbuzz/harfbuzz/issues/3263 --- src/hb-ot-head-table.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hb-ot-head-table.hh b/src/hb-ot-head-table.hh index ac588e3af..20991aab2 100644 --- a/src/hb-ot-head-table.hh +++ b/src/hb-ot-head-table.hh @@ -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 {