gdi32/tests: Add more ABC width tests with vertical font.

Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Akihiro Sagawa 2018-02-04 21:02:11 +09:00 committed by Alexandre Julliard
parent da63c2356d
commit 34c4687f25
1 changed files with 10 additions and 1 deletions

View File

@ -5929,7 +5929,7 @@ static void check_vertical_metrics(const char *face)
GLYPHMETRICS rgm, vgm; GLYPHMETRICS rgm, vgm;
const UINT code = 0x5EAD, height = 1000; const UINT code = 0x5EAD, height = 1000;
WORD idx; WORD idx;
ABC abc; ABC abc, vabc;
OUTLINETEXTMETRICA otm; OUTLINETEXTMETRICA otm;
USHORT numOfLongVerMetrics; USHORT numOfLongVerMetrics;
@ -5957,6 +5957,15 @@ static void check_vertical_metrics(const char *face)
hfont_prev = SelectObject(hdc, hfont); hfont_prev = SelectObject(hdc, hfont);
ret = GetGlyphOutlineW(hdc, code, GGO_METRICS, &vgm, 0, NULL, &mat); ret = GetGlyphOutlineW(hdc, code, GGO_METRICS, &vgm, 0, NULL, &mat);
ok(ret != GDI_ERROR, "GetGlyphOutlineW failed\n"); ok(ret != GDI_ERROR, "GetGlyphOutlineW failed\n");
ret = GetCharABCWidthsW(hdc, code, code, &vabc);
ok(ret, "GetCharABCWidthsW failed\n");
todo_wine ok(vabc.abcA == vgm.gmptGlyphOrigin.x, "expected %d, got %d\n",
vabc.abcA, vgm.gmptGlyphOrigin.x);
todo_wine ok(vabc.abcB == vgm.gmBlackBoxX, "expected %d, got %d\n",
vabc.abcB, vgm.gmBlackBoxX);
ok(vabc.abcA + vabc.abcB + vabc.abcC == vgm.gmCellIncX,
"expected %d, got %d\n",
vabc.abcA + vabc.abcB + vabc.abcC, vgm.gmCellIncX);
memset(&otm, 0, sizeof(otm)); memset(&otm, 0, sizeof(otm));
otm.otmSize = sizeof(otm); otm.otmSize = sizeof(otm);