12 LOGFONT logfont = {-11, 0, 0, 0, 400,
13 0, 0, 0, 0, 0, 0, 0, 0,
20 static const WCHAR alphabet[] = {
21 'a',
'b',
'c',
'd',
'e',
'f',
'g',
'h',
'i',
'j',
'k',
'l',
'm',
'n',
'o',
'p',
'q',
22 'r',
's',
't',
'u',
'v',
'w',
'x',
'y',
'z',
'A',
'B',
'C',
'D',
'E',
'F',
'G',
'H',
23 'I',
'J',
'K',
'L',
'M',
'N',
'O',
'P',
'Q',
'R',
'S',
'T',
'U',
'V',
'W',
'X',
'Y',
'Z',0};
31 x2 = (
size.cx / 26 + 1) / 2;
33 ok(
x ==
x2,
"x=%ld, x2=%ld\n",
x,
x2);
34 ok(
y ==
tm.tmHeight,
"y = %ld, tm.tmHeight = %ld\n",
y,
tm.tmHeight);
void Test_GdiGetCharDimensions()
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
static DWORD *static HFONT(WINAPI *pCreateFontIndirectExA)(const ENUMLOGFONTEXDVA *)
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
LONG WINAPI GdiGetCharDimensions(HDC, LPTEXTMETRICW, LONG *)
BOOL WINAPI GetTextExtentPointW(_In_ HDC hdc, _In_reads_(c) LPCWSTR lpString, _In_ int c, _Out_ LPSIZE lpsz)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
BOOL WINAPI DeleteDC(_In_ HDC)
#define CreateFontIndirect