gdi32: Use the vertAdvance value for cellIncX if vertical metrics are available.

This commit is contained in:
Akihiro Sagawa 2014-01-10 20:29:51 +09:00 committed by Alexandre Julliard
parent 7d1d9b40f1
commit d33602564b
1 changed files with 4 additions and 1 deletions

View File

@ -6504,7 +6504,10 @@ static DWORD get_glyph_outline(GdiFont *incoming_font, UINT glyph, UINT format,
}
TRACE("transformed box: (%d,%d - %d,%d)\n", left, top, right, bottom);
vec.x = metrics.horiAdvance;
if (vertical_metrics)
vec.x = metrics.vertAdvance;
else
vec.x = metrics.horiAdvance;
vec.y = 0;
pFT_Vector_Transform(&vec, &transMat);
gm.gmCellIncY = -((vec.y+63) >> 6);