usp10: In Arabic only fallback to presentation form B for isolated glyphs.

This commit is contained in:
Aric Stewart 2011-11-20 21:02:58 -07:00 committed by Alexandre Julliard
parent f869a16186
commit ed15053837
1 changed files with 9 additions and 6 deletions

View File

@ -1566,6 +1566,8 @@ static void ContextualShape_Arabic(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *p
}
if (!shaped)
{
if (context_shape[i] == Xn)
{
WORD newGlyph = pwOutGlyphs[i];
if (pwcChars[i] >= FIRST_ARABIC_CHAR && pwcChars[i] <= LAST_ARABIC_CHAR)
@ -1575,6 +1577,7 @@ static void ContextualShape_Arabic(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *p
if (context_char != pwcChars[i] && GetGlyphIndicesW(hdc, &context_char, 1, &newGlyph, 0) != GDI_ERROR && newGlyph != 0x0000)
pwOutGlyphs[i] = newGlyph;
}
}
i++;
}
}