mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 16:31:14 +01:00
[>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.
This commit is contained in:
1 parent
0f13eb1f5c
commit
1bf8fa2f1f
1 file changed
+4
@@ -2609,6 +2609,7 @@ struct Context
|
||||
case 2: return_trace (c->dispatch (u.format2, std::forward<Ts> (ds)...));
|
||||
case 3: return_trace (c->dispatch (u.format3, std::forward<Ts> (ds)...));
|
||||
#ifndef HB_NO_BORING_EXPANSION
|
||||
case 4: return_trace (c->dispatch (u.format4, std::forward<Ts> (ds)...));
|
||||
case 5: return_trace (c->dispatch (u.format5, std::forward<Ts> (ds)...));
|
||||
#endif
|
||||
default:return_trace (c->default_return_value ());
|
||||
@@ -2622,6 +2623,7 @@ struct Context
|
||||
ContextFormat2_5<SmallTypes> format2;
|
||||
ContextFormat3 format3;
|
||||
#ifndef HB_NO_BORING_EXPANSION
|
||||
ContextFormat1_4<MediumTypes> format4;
|
||||
ContextFormat2_5<MediumTypes> format5;
|
||||
#endif
|
||||
} u;
|
||||
@@ -3781,6 +3783,7 @@ struct ChainContext
|
||||
case 2: return_trace (c->dispatch (u.format2, std::forward<Ts> (ds)...));
|
||||
case 3: return_trace (c->dispatch (u.format3, std::forward<Ts> (ds)...));
|
||||
#ifndef HB_NO_BORING_EXPANSION
|
||||
case 4: return_trace (c->dispatch (u.format4, std::forward<Ts> (ds)...));
|
||||
case 5: return_trace (c->dispatch (u.format5, std::forward<Ts> (ds)...));
|
||||
#endif
|
||||
default:return_trace (c->default_return_value ());
|
||||
@@ -3794,6 +3797,7 @@ struct ChainContext
|
||||
ChainContextFormat2_5<SmallTypes> format2;
|
||||
ChainContextFormat3 format3;
|
||||
#ifndef HB_NO_BORING_EXPANSION
|
||||
ChainContextFormat1_4<MediumTypes> format4;
|
||||
ChainContextFormat2_5<MediumTypes> format5;
|
||||
#endif
|
||||
} u;
|
||||
|
||||
Reference in new issue
Block a user