Commit ecd43b4b authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

usp10: Correct lookahead offset in Coverage-based Chaining Context Glyph Substitution.

parent 7f6e677d
...@@ -690,7 +690,7 @@ static INT GSUB_apply_ChainContextSubst(const GSUB_LookupList* lookup, const GSU ...@@ -690,7 +690,7 @@ static INT GSUB_apply_ChainContextSubst(const GSUB_LookupList* lookup, const GSU
for (k = 0; k < GET_BE_WORD(ccsf3_3->LookaheadGlyphCount); k++) for (k = 0; k < GET_BE_WORD(ccsf3_3->LookaheadGlyphCount); k++)
{ {
offset = GET_BE_WORD(ccsf3_3->Coverage[k]); offset = GET_BE_WORD(ccsf3_3->Coverage[k]);
if (GSUB_is_glyph_covered((const BYTE*)ccsf3_1+offset, glyphs[glyph_index + (dirLookahead * (indexGlyphs + k+1))]) == -1) if (GSUB_is_glyph_covered((const BYTE*)ccsf3_1+offset, glyphs[glyph_index + (dirLookahead * (indexGlyphs + k))]) == -1)
break; break;
} }
if (k != GET_BE_WORD(ccsf3_3->LookaheadGlyphCount)) if (k != GET_BE_WORD(ccsf3_3->LookaheadGlyphCount))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment