diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c index 0aa9af6..6e5f246 100644 --- a/dlls/gdi32/tests/font.c +++ b/dlls/gdi32/tests/font.c @@ -2477,6 +2477,20 @@ static void test_orientation(void) DeleteDC(hdc); } +void test_tahoma_internal_leading() +{ + HFONT hFont = CreateFont(32, 0, 0, 0, FW_DONTCARE, FALSE, FALSE, FALSE, ANSI_CHARSET, + OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, FF_DONTCARE, "Tahoma"); + HDC hdc = GetDC(NULL); + TEXTMETRIC tm; + HFONT hOldFont = (HFONT)SelectObject(hdc, hFont); + + GetTextMetrics(hdc, &tm); + todo_wine ok(tm.tmInternalLeading == 6, "Invalid tmInternalLeading - %d instead of 6\n", tm.tmInternalLeading); + DeleteObject(SelectObject(hdc, hOldFont)); + ReleaseDC(NULL, hdc); +} + START_TEST(font) { init(); @@ -2496,6 +2510,7 @@ START_TEST(font) test_GetFontUnicodeRanges(); test_nonexistent_font(); test_orientation(); + test_tahoma_internal_leading(); /* On Windows Arial has a lot of default charset aliases such as Arial Cyr, * I'd like to avoid them in this test.