[PATCH 0/1] MR10551: Draft: Check Font Height without Graphics
From: Bartosz Kosiorek <gang65@poczta.onet.pl> --- dlls/gdiplus/tests/graphics.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlls/gdiplus/tests/graphics.c b/dlls/gdiplus/tests/graphics.c index 96ef52ce935..0c07931e585 100644 --- a/dlls/gdiplus/tests/graphics.c +++ b/dlls/gdiplus/tests/graphics.c @@ -4546,7 +4546,14 @@ static void test_font_height_scaling(void) margin_y = units_to_pixels(height / 8.0, font_unit, dpi); margin_y = pixels_to_units(margin_y, gfx_unit, dpi); + // Check Font Height value without Graphic + status = GdipGetFontHeight(font, NULL, &font_height); + expectf_(9052.733398, font_height, 0.05); + expect(Ok, status); + + // Check Font Height value with Graphic 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
participants (2)
-
Bartosz Kosiorek -
Bartosz Kosiorek (@gang65)