diff --git a/src/ftxgpos.c b/src/ftxgpos.c index 7a17e1cc5..f3ce13cd6 100644 --- a/src/ftxgpos.c +++ b/src/ftxgpos.c @@ -5323,7 +5323,7 @@ /* we are starting to check for lookahead glyphs right after the last context glyph */ - curr_pos = j; + curr_pos += j; s_in = &in->string[curr_pos]; for ( i = 0, j = 0; i < lgc; i++, j++ ) @@ -5521,7 +5521,7 @@ /* we are starting to check for lookahead glyphs right after the last context glyph */ - curr_pos = j; + curr_pos += j; s_in = &in->string[curr_pos]; lc = cpcr.Lookahead; @@ -5669,7 +5669,7 @@ /* we are starting to check for lookahead glyphs right after the last context glyph */ - curr_pos = j; + curr_pos += j; s_in = &in->string[curr_pos]; lc = ccpf3->LookaheadCoverage; diff --git a/src/ftxgsub.c b/src/ftxgsub.c index e9b5548a3..e473ca958 100644 --- a/src/ftxgsub.c +++ b/src/ftxgsub.c @@ -3514,7 +3514,7 @@ /* we are starting to check for lookahead glyphs right after the last context glyph */ - curr_pos = j; + curr_pos += j; s_in = &in->string[curr_pos]; for ( i = 0, j = 0; i < lgc; i++, j++ ) @@ -3712,7 +3712,7 @@ /* we are starting to check for lookahead glyphs right after the last context glyph */ - curr_pos = j; + curr_pos += j; s_in = &in->string[curr_pos]; lc = ccsr.Lookahead; @@ -3859,7 +3859,7 @@ /* we are starting for lookahead glyphs right after the last context glyph */ - curr_pos = j; + curr_pos += j; s_in = &in->string[curr_pos]; lc = ccsf3->LookaheadCoverage;