Fix OS/2.usMaxContext for reverse GSUB rules
This commit is contained in:
parent
4b030d2db8
commit
aa390ec98b
@ -92,5 +92,5 @@ def maxCtxContextualRule(maxCtx, st, chain):
|
||||
if not chain:
|
||||
return max(maxCtx, st.GlyphCount)
|
||||
elif chain == "Reverse":
|
||||
return max(maxCtx, st.GlyphCount + st.LookAheadGlyphCount)
|
||||
return max(maxCtx, 1 + st.LookAheadGlyphCount)
|
||||
return max(maxCtx, st.InputGlyphCount + st.LookAheadGlyphCount)
|
||||
|
@ -39,8 +39,8 @@ def test_max_ctx_calc_features():
|
||||
rsub a' by b;
|
||||
rsub a b' by c;
|
||||
rsub a b' c by A;
|
||||
rsub [a b] [a b c]' [a b] by B;
|
||||
rsub [a b] c' by A;
|
||||
rsub [a b] c' [a b] by B;
|
||||
lookup GSUB_EXT;
|
||||
} sub1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user