usp10: Fix MarkToBase offset for RTL text.

This commit is contained in:
Huw Davies 2013-01-14 13:17:17 +00:00 committed by Alexandre Julliard
parent b864b4aae2
commit 7ba38ad62e
1 changed files with 3 additions and 1 deletions

View File

@ -1730,7 +1730,9 @@ static INT GPOS_apply_lookup(LPOUTLINETEXTMETRICW lpotm, LPLOGFONTW lplogfont, c
if (desU.x || desU.y)
{
GPOS_convert_design_units_to_device(lpotm, lplogfont, desU.x, desU.y, &devX, &devY);
pGoffset[glyph_index].du += (round(devX) - piAdvance[glyph_index-1]);
if (!analysis->fRTL) pGoffset[glyph_index].du -= piAdvance[glyph_index-1];
else if (analysis->fLogicalOrder) devX *= -1;
pGoffset[glyph_index].du += round(devX);
pGoffset[glyph_index].dv += round(devY);
}
break;