mirror of
https://github.com/reactos/reactos.git
synced 2024-11-04 22:00:55 +00:00
d55028d26f
svn path=/trunk/; revision=33818
22 lines
601 B
C
22 lines
601 B
C
#define INVALIDFONT "ThisFontDoesNotExist"
|
|
|
|
INT
|
|
Test_CreateFont(PTESTINFO pti)
|
|
{
|
|
HFONT hFont;
|
|
LOGFONTA logfonta;
|
|
|
|
/* Test invalid font name */
|
|
hFont = CreateFontA(15, 0, 0, 0, FW_DONTCARE, FALSE, FALSE, FALSE,
|
|
DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS,
|
|
DEFAULT_QUALITY, DEFAULT_PITCH, INVALIDFONT);
|
|
RTEST(hFont);
|
|
RTEST(GetObjectA(hFont, sizeof(LOGFONTA), &logfonta) == sizeof(LOGFONTA));
|
|
RTEST(memcmp(logfonta.lfFaceName, INVALIDFONT, strlen(INVALIDFONT)) == 0);
|
|
RTEST(logfonta.lfWeight == FW_DONTCARE);
|
|
|
|
|
|
return APISTATUS_NORMAL;
|
|
}
|
|
|
|
|