Fix copy paste error in file header
[reactos.git] / rostests / apitests / gdi32api / tests / CreateFont.c
1 #define INVALIDFONT "ThisFontDoesNotExist"
2
3 INT
4 Test_CreateFont(PTESTINFO pti)
5 {
6 HFONT hFont;
7 LOGFONTA logfonta;
8
9 /* Test invalid font name */
10 hFont = CreateFontA(15, 0, 0, 0, FW_DONTCARE, FALSE, FALSE, FALSE,
11 DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
12 DEFAULT_QUALITY, DEFAULT_PITCH, INVALIDFONT);
13 RTEST(hFont);
14 RTEST(GetObjectA(hFont, sizeof(LOGFONTA), &logfonta) == sizeof(LOGFONTA));
15 RTEST(memcmp(logfonta.lfFaceName, INVALIDFONT, strlen(INVALIDFONT)) == 0);
16 RTEST(logfonta.lfWeight == FW_DONTCARE);
17
18
19 return APISTATUS_NORMAL;
20 }
21
22