Commit 746679e1 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

usp10: Handle dangling joiners when processing Indic GlyphProps.

parent b036c8a3
......@@ -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;
......
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