From 52a00cd87f63c8ab32413a1a9ce792a3e2ec84e2 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 31 Oct 2018 19:05:53 -0700 Subject: [PATCH] [aat] Implement 'aalt' mapping Fixes https://github.com/harfbuzz/harfbuzz/issues/1160 --- src/hb-aat-map.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/hb-aat-map.cc b/src/hb-aat-map.cc index f2736bfd1..1ce1b12b0 100644 --- a/src/hb-aat-map.cc +++ b/src/hb-aat-map.cc @@ -34,6 +34,14 @@ void hb_aat_map_builder_t::add_feature (hb_tag_t tag, unsigned int value) { + if (tag == HB_TAG ('a','a','l','t')) + { + feature_info_t *info = features.push(); + info->type = 17/*kCharacterAlternativesType*/; + info->setting = value; + return; + } + const hb_aat_feature_mapping_t *mapping = hb_aat_layout_find_feature_mapping (tag); if (!mapping) return;