Commit eeb52474 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

gdiplus: Add a test for creating a nonexistent font with GdipCreateFontFromLogfont.

parent bc66ef04
......@@ -105,6 +105,11 @@ static void test_logfont(void)
memset(&lfa, 0, sizeof(LOGFONTA));
memset(&lfa2, 0xff, sizeof(LOGFONTA));
lstrcpyA(lfa.lfFaceName, "Nonexistent font");
stat = GdipCreateFontFromLogfontA(hdc, &lfa, &font);
ok(stat == NotTrueTypeFont || broken(stat == FileNotFound), /* before XP */
"expected NotTrueTypeFont, got %d\n", stat);
/* empty FaceName */
lfa.lfFaceName[0] = 0;
stat = GdipCreateFontFromLogfontA(hdc, &lfa, &font);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment