From e122fe2acfde26b8b95ee96ebd7a33f20c02c77c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 10 Jan 2023 11:06:20 -0700 Subject: [PATCH] [aat] Adjust last range Otherwise a user cluster value of -1 would have tripped us. --- src/hb-aat-map.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hb-aat-map.cc b/src/hb-aat-map.cc index a4d153df3..5bdb8004f 100644 --- a/src/hb-aat-map.cc +++ b/src/hb-aat-map.cc @@ -162,6 +162,10 @@ hb_aat_map_builder_t::compile (hb_aat_map_t &m) active_features.remove_ordered (feature - active_features.arrayZ); } } + + for (auto &chain_flags : m.chain_flags) + // With our above setup this value is one less than desired; adjust it. + chain_flags.tail().cluster_last = HB_FEATURE_GLOBAL_END; }