Commit 63490ce0 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

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

parent 750404ee
......@@ -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++;
}
}
......
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