[HB] Fix bug in chain_context_lookup() invocations

Part of Bug 595539 - Regressions in rendering certain Thai sequences with
OpenType font
This commit is contained in:
Behdad Esfahbod 2009-09-21 13:40:38 -04:00
parent e6bd4e93bd
commit c0ab43c058
1 changed files with 2 additions and 2 deletions

View File

@ -567,7 +567,7 @@ struct ChainRule
const ArrayOf<LookupRecord> &lookup = CONST_NEXT (ArrayOf<LookupRecord>, lookahead);
return chain_context_lookup (APPLY_ARG,
backtrack.len, backtrack.array,
input.len, input.array + 1,
input.len, input.array,
lookahead.len, lookahead.array,
lookup.len, lookup.array,
lookup_context);
@ -749,7 +749,7 @@ struct ChainContextFormat3
};
return chain_context_lookup (APPLY_ARG,
backtrack.len, (USHORT *) backtrack.array,
input.len, (USHORT *) input.array,
input.len, (USHORT *) input.array + 1,
lookahead.len, (USHORT *) lookahead.array,
lookup.len, lookup.array,
lookup_context);