From 1bf8fa2f1f67a4f72d14c53bc4242e38e46ab475 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 8 Jul 2022 14:22:21 -0600 Subject: [PATCH] [>64k:layout:(Chain)Context] Implement format 4 Implements rest of https://github.com/be-fonts/boring-expansion-spec/issues/34 Subset does NOT lower format. --- src/hb-ot-layout-gsubgpos.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hb-ot-layout-gsubgpos.hh b/src/hb-ot-layout-gsubgpos.hh index 24a688e24..cbbd80efa 100644 --- a/src/hb-ot-layout-gsubgpos.hh +++ b/src/hb-ot-layout-gsubgpos.hh @@ -2609,6 +2609,7 @@ struct Context case 2: return_trace (c->dispatch (u.format2, std::forward (ds)...)); case 3: return_trace (c->dispatch (u.format3, std::forward (ds)...)); #ifndef HB_NO_BORING_EXPANSION + case 4: return_trace (c->dispatch (u.format4, std::forward (ds)...)); case 5: return_trace (c->dispatch (u.format5, std::forward (ds)...)); #endif default:return_trace (c->default_return_value ()); @@ -2622,6 +2623,7 @@ struct Context ContextFormat2_5 format2; ContextFormat3 format3; #ifndef HB_NO_BORING_EXPANSION + ContextFormat1_4 format4; ContextFormat2_5 format5; #endif } u; @@ -3781,6 +3783,7 @@ struct ChainContext case 2: return_trace (c->dispatch (u.format2, std::forward (ds)...)); case 3: return_trace (c->dispatch (u.format3, std::forward (ds)...)); #ifndef HB_NO_BORING_EXPANSION + case 4: return_trace (c->dispatch (u.format4, std::forward (ds)...)); case 5: return_trace (c->dispatch (u.format5, std::forward (ds)...)); #endif default:return_trace (c->default_return_value ()); @@ -3794,6 +3797,7 @@ struct ChainContext ChainContextFormat2_5 format2; ChainContextFormat3 format3; #ifndef HB_NO_BORING_EXPANSION + ChainContextFormat1_4 format4; ChainContextFormat2_5 format5; #endif } u;