usp10: Handle dangling joiners when processing Indic GlyphProps.

This commit is contained in:
Aric Stewart 2011-12-07 08:30:49 -06:00 committed by Alexandre Julliard
parent b036c8a38d
commit 746679e186
1 changed files with 5 additions and 1 deletions

View File

@ -3302,7 +3302,11 @@ static void ShapeCharGlyphProp_BaseIndic( HDC hdc, ScriptCache *psc, SCRIPT_ANAL
break;
case lex_ZWJ:
case lex_ZWNJ:
k = char_count;
/* check for dangling joiners */
if (pwcChars[char_index[k]-1] == 0x0020 || pwcChars[char_index[k]+1] == 0x0020)
pGlyphProp[i].sva.fClusterStart = 1;
else
k = char_count;
break;
default:
pGlyphProp[i].sva.fClusterStart = 1;