From: Bartosz Kosiorek <gang65@poczta.onet.pl> --- dlls/gdiplus/tests/font.c | 5 +++++ dlls/gdiplus/tests/graphics.c | 1 + 2 files changed, 6 insertions(+) diff --git a/dlls/gdiplus/tests/font.c b/dlls/gdiplus/tests/font.c index 1bbb18f4c6d..179fe2f4dc3 100644 --- a/dlls/gdiplus/tests/font.c +++ b/dlls/gdiplus/tests/font.c @@ -349,6 +349,11 @@ static void test_logfont(void) expect(Ok, stat); expect(UnitWorld, unit); + // Font Height without GpGraphics + stat = GdipGetFontHeight(font, NULL, &rval); + expect(Ok, stat); + expectf(25.347656, rval); + stat = GdipGetFontHeight(font, graphics, &rval); expect(Ok, stat); expectf(25.347656, rval); diff --git a/dlls/gdiplus/tests/graphics.c b/dlls/gdiplus/tests/graphics.c index 96ef52ce935..d93080ce7d7 100644 --- a/dlls/gdiplus/tests/graphics.c +++ b/dlls/gdiplus/tests/graphics.c @@ -4547,6 +4547,7 @@ static void test_font_height_scaling(void) margin_y = pixels_to_units(margin_y, gfx_unit, dpi); status = GdipGetFontHeight(font, graphics, &font_height); + expectf_(pixels_to_units(9052.733398, gfx_unit, dpi), font_height, 0.05); expect(Ok, status); set_rect_empty(&rect); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10551