usp10: Fix MarkToBase offset for RTL text.
This commit is contained in:
parent
b864b4aae2
commit
7ba38ad62e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue