summaryrefslogtreecommitdiff
path: root/thirdparty/harfbuzz/src/hb-aat-layout-morx-table.hh
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-07-24 23:07:30 +0200
committerGitHub <noreply@github.com>2022-07-24 23:07:30 +0200
commit72c2f7ef160f37fdd0b0412d9b329e6c7b67a721 (patch)
tree5d1acde6740da9cd5ae636e4ba92fae54f63f329 /thirdparty/harfbuzz/src/hb-aat-layout-morx-table.hh
parent0d1dacc902904d6eedc74f9a0a04069e6111591d (diff)
parent5f5a9f256cad866172c18939e31162ba038ac02e (diff)
Merge pull request #63404 from bruvzg/hb-501
Diffstat (limited to 'thirdparty/harfbuzz/src/hb-aat-layout-morx-table.hh')
-rw-r--r--thirdparty/harfbuzz/src/hb-aat-layout-morx-table.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/thirdparty/harfbuzz/src/hb-aat-layout-morx-table.hh b/thirdparty/harfbuzz/src/hb-aat-layout-morx-table.hh
index 3d053cb13e..aa4ad4cf3c 100644
--- a/thirdparty/harfbuzz/src/hb-aat-layout-morx-table.hh
+++ b/thirdparty/harfbuzz/src/hb-aat-layout-morx-table.hh
@@ -980,6 +980,15 @@ struct Chain
setting = HB_AAT_LAYOUT_FEATURE_SELECTOR_LOWER_CASE_SMALL_CAPS;
goto retry;
}
+#ifndef HB_NO_AAT
+ else if (type == HB_AAT_LAYOUT_FEATURE_TYPE_LANGUAGE_TAG_TYPE && setting &&
+ /* TODO: Rudimentary language matching. */
+ hb_language_matches (map->face->table.ltag->get_language (setting - 1), map->props.language))
+ {
+ flags &= feature.disableFlags;
+ flags |= feature.enableFlags;
+ }
+#endif
}
}
return flags;