Skip to content

Commit

Permalink
gdi32/tests: Test otmEMSquare only for Truetype fonts.
Browse files Browse the repository at this point in the history
It looks like GetOutlineTextMetrics no longer fails for bitmat fonts
under Windows 10.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51184
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
  • Loading branch information
Dmitry Timoshkov authored and julliard committed Jun 7, 2021
1 parent f9c8c95 commit d8e6d2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dlls/gdi32/tests/font.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ if (0) /* these metrics are scaled too, but with rounding errors */
ok(otm.otmMacDescent < 0, "otm.otmMacDescent should be < 0\n");
ok(tm.tmDescent > 0, "tm.tmDescent should be > 0\n");
ok(otm.otmMacDescent == -tm.tmDescent, "descent %d != %d\n", otm.otmMacDescent, -tm.tmDescent);
ok(otm.otmEMSquare == 2048, "expected 2048, got %d\n", otm.otmEMSquare);
if (otm.otmTextMetrics.tmPitchAndFamily & TMPF_TRUETYPE)
ok(otm.otmEMSquare == 2048, "expected 2048, got %d\n", otm.otmEMSquare);
}
else
{
Expand Down

0 comments on commit d8e6d2e

Please sign in to comment.