Skip to content

Commit c769629

Browse files
committed
[WIN32K] Add GreCreateFontIndirectW(), GreGetTextMetricsW(), GreTextOutW() stubs, implement GreCreateFontIndirectW
1 parent 3f7027e commit c769629

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

win32ss/gdi/font/lfont.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,17 @@ LFONT_prfntFindRFONT(
9393
return NULL;
9494
}
9595

96+
HFONT
97+
NTAPI
98+
GreCreateFontIndirectW(
99+
_In_ const LOGFONTW *plfw)
100+
{
101+
return GreHfontCreate((PENUMLOGFONTEXDVW)plfw,
102+
sizeof(*plfw),
103+
0, // FIXME: lft
104+
0, // fl
105+
NULL); // pvCliData
106+
}
96107

97108
HFONT
98109
NTAPI

win32ss/gdi/font/textmetric.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,16 @@ NtGdiGetOutlineTextMetricsInternalW(
239239
return 0;
240240
}
241241

242+
BOOL
243+
WINAPI
244+
GreGetTextMetricsW(
245+
_In_ HDC hdc,
246+
_Out_ LPTEXTMETRICW lptm)
247+
{
248+
ASSERT(FALSE);
249+
return FALSE;
250+
}
251+
242252
BOOL
243253
NTAPI
244254
GreGetTextExtentW(

win32ss/gdi/font/textout.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,26 @@ GreExtTextOutW(
5050
return FALSE;
5151
}
5252

53+
BOOL
54+
NTAPI
55+
GreTextOutW(
56+
_In_ HDC hdc,
57+
_In_ int xStart,
58+
_In_ int yStart,
59+
_In_ LPCWSTR pwcString,
60+
_In_ int cwc)
61+
{
62+
return GreExtTextOutW(hdc,
63+
xStart,
64+
yStart,
65+
0, // fuOptions
66+
NULL, // lprc
67+
pwcString,
68+
cwc,
69+
NULL, // Dx
70+
0); // dwCodePage
71+
}
72+
5373
W32KAPI
5474
BOOL
5575
APIENTRY

0 commit comments

Comments
 (0)