Commit 502d2398 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

usp10: Do not fall back to presentation form B if the contextual feature exists…

usp10: Do not fall back to presentation form B if the contextual feature exists in ContextualShape_Arabic(). E.g., the base form of 'ا' may be the same as the isolated form, in which case the "isol" feature may not have a substitution for it. At the same time, while the presentation form B glyph may look the same or similar as the base form, it may have a different glyph ID. This can break e.g. GSUB_LOOKUP_CONTEXT_CHAINED substitutions because of the unexpected glyph ID. Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com> Signed-off-by: 's avatarAric Stewart <aric@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 36c52522
......@@ -1129,8 +1129,14 @@ static void ContextualShape_Arabic(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *p
offset = *pcGlyphs - prevCount;
glyph_index += dirL * (offset + 1);
}
shaped = TRUE;
}
else if (nextIndex == GSUB_E_NOGLYPH)
{
char_index += dirL;
glyph_index += dirL;
shaped = TRUE;
}
shaped = (nextIndex > GSUB_E_NOGLYPH);
}
if (!shaped)
......
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