usp10: Correct ScriptStringGetLogicalWidths to be based on char not glyph.

This commit is contained in:
Aric Stewart 2011-10-06 08:35:59 -05:00 committed by Alexandre Julliard
parent 750404ee8d
commit 63490ce038
1 changed files with 5 additions and 2 deletions

View File

@ -2287,9 +2287,12 @@ HRESULT WINAPI ScriptStringGetLogicalWidths(SCRIPT_STRING_ANALYSIS ssa, int *piD
for (i = 0; i < analysis->numItems; i++)
{
for (j = 0; j < analysis->glyphs[i].numGlyphs; j++)
int cChar = analysis->pItem[i+1].iCharPos - analysis->pItem[i].iCharPos;
for (j = 0; j < cChar; j++)
{
piDx[next] = analysis->glyphs[i].piAdvance[j];
int glyph = analysis->glyphs[i].pwLogClust[j];
piDx[next] = analysis->glyphs[i].piAdvance[glyph];
next++;
}
}