Go to the source code of this file.
◆ ok_hex2
Value:do { \
int _value = (expression); \
ok(_value == (
res->expression),
"Wrong value for '%s', expected: 0x%x, got: 0x%x for %s/%s\n", \
} while (0)
static const char * test_name
Definition at line 212 of file AddFontMemResourceEx.c.
◆ ok_int2
Value:do { \
int _value = (expression); \
ok(_value == (
res->expression),
"Wrong value for '%s', expected: %d, got: %d for %s/%s\n", \
} while (0)
static const char * test_name
Definition at line 205 of file AddFontMemResourceEx.c.
◆ fnt_res
◆ fnt_test
◆ is_font_available()
Definition at line 281 of file AddFontMemResourceEx.c.
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
DWORD WINAPI GetLastError(VOID)
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
GLenum const GLvoid * fontName
#define CLIP_DEFAULT_PRECIS
#define OUT_DEFAULT_PRECIS
HFONT WINAPI CreateFontA(_In_ int, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_opt_ LPCSTR)
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
int WINAPI GetTextFaceA(_In_ HDC hdc, _In_ int c, _Out_writes_to_opt_(c, return) LPSTR lpName)
_Check_return_ _CRTIMP int __cdecl _strcmpi(_In_z_ const char *_Str1, _In_z_ const char *_Str2)
Referenced by START_TEST().
◆ START_TEST()
Definition at line 307 of file AddFontMemResourceEx.c.
323 ok(!is_font_available_broken,
"Validating font is broken! (CORE-13053)!\n");
338 ok(dwNumFonts ==
data->NumFaces,
"dwNumFonts was %lu, expected %d for %s\n", dwNumFonts,
data->NumFaces,
data->ResourceName);
339 ok(
hFont !=
NULL,
"Expected valid handle for %s\n",
data->ResourceName);
345 if (!is_font_available_broken)
351 skip(
"Font unregister test for %s\n",
data->ResourceName);
HRSRC WINAPI FindResourceA(HMODULE hModule, LPCSTR name, LPCSTR type)
LPVOID WINAPI LockResource(HGLOBAL handle)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
HANDLE WINAPI AddFontMemResourceEx(_In_reads_bytes_(cjSize) PVOID pvFileView, _In_ DWORD cjSize, _Reserved_ PVOID pvResrved, _In_ DWORD *pNumFonts)
#define UnlockResource(h)
BOOL WINAPI FreeResource(HGLOBAL handle)
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
static void test_font_caps(HDC hdc, int test_index)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
BOOL WINAPI RemoveFontMemResourceEx(HANDLE fh)
BOOL WINAPI DeleteDC(_In_ HDC)
DWORD WINAPI SizeofResource(HINSTANCE hModule, HRSRC hRsrc)
static BOOL is_font_available(HDC hdc, const char *fontName)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
◆ test_font_caps()
static void test_font_caps |
( |
HDC |
hdc, |
|
|
int |
test_index |
|
) |
| |
|
static |
Definition at line 220 of file AddFontMemResourceEx.c.
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
DWORD WINAPI GetLastError(VOID)
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
#define ok_int2(expression)
#define CLIP_DEFAULT_PRECIS
BOOL WINAPI GetTextMetricsA(_In_ HDC, _Out_ LPTEXTMETRICA)
#define ok_hex2(expression)
#define OUT_DEFAULT_PRECIS
HFONT WINAPI CreateFontA(_In_ int, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_ DWORD, _In_opt_ LPCSTR)
static const char * test_name
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
int WINAPI GetTextFaceA(_In_ HDC hdc, _In_ int c, _Out_writes_to_opt_(c, return) LPSTR lpName)
int strcmp(const char *String1, const char *String2)
Referenced by START_TEST().
◆ test_data