mirror of
https://github.com/reactos/wine.git
synced 2025-02-23 22:40:55 +00:00
gdiplus: Add a test for creating a nonexistent font with GdipCreateFontFromLogfont.
This commit is contained in:
parent
bc66ef043f
commit
eeb52474c1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user