5 #undef WIN32_LEAN_AND_MEAN
8 #include <win32k/kapi.h>
20 UNICODE_STRING StringU
;
25 RtlInitAnsiString(&StringA
, (LPSTR
)String
);
26 RtlAnsiStringToUnicodeString(&StringU
, &StringA
, TRUE
);
28 StringU
.Buffer
= NULL
;
30 ret
= TextOutW(hDC
, XStart
, YStart
, StringU
.Buffer
, Count
);
31 RtlFreeUnicodeString(&StringU
);
44 return W32kTextOut(hDC
, XStart
, YStart
, String
, Count
);
54 return W32kSetTextColor(hDC
, color
);
64 return W32kGetTextMetrics(hdc
, tm
);
74 return W32kGetTextMetrics(hdc
, tm
);
87 UNICODE_STRING StringU
;
90 RtlInitAnsiString(&StringA
, (LPSTR
)String
);
91 RtlAnsiStringToUnicodeString(&StringU
, &StringA
, TRUE
);
93 ret
= GetTextExtentPointW(hDC
, StringU
.Buffer
, Count
, Size
);
95 RtlFreeUnicodeString(&StringU
);
109 return W32kGetTextExtentPoint(hDC
, String
, Count
, Size
);
126 UNICODE_STRING StringU
;
129 RtlInitAnsiString(&StringA
, (LPSTR
)String
);
130 RtlAnsiStringToUnicodeString(&StringU
, &StringA
, TRUE
);
132 ret
= ExtTextOutW(hDC
, X
, Y
, Options
, Rect
, StringU
.Buffer
, Count
, Spacings
);
134 RtlFreeUnicodeString(&StringU
);
152 return W32kTextOut(hDC
, X
, Y
, String
, Count
);
162 UNICODE_STRING StringU
;
166 RtlInitAnsiString(&StringA
, (LPSTR
)lf
->lfFaceName
);
167 RtlAnsiStringToUnicodeString(&StringU
, &StringA
, TRUE
);
168 memcpy(&tlf
, lf
, sizeof(LOGFONT
));
169 memcpy(&tlf
.lfFaceName
, &StringU
.Buffer
, StringU
.Length
);
171 ret
= CreateFontIndirectW((CONST LOGFONT
*)&lf
);
173 RtlFreeUnicodeString(&StringU
);
184 return W32kCreateFontIndirect((CONST LPLOGFONT
)lf
);
199 DWORD OutputPrecision
,
202 DWORD PitchAndFamily
,
207 UNICODE_STRING StringU
;
211 RtlInitAnsiString(&StringA
, (LPSTR
)Face
);
212 RtlAnsiStringToUnicodeString(&StringU
, &StringA
, TRUE
);
214 ret
= CreateFontW(Height
, Width
, Escapement
, Orientation
, Weight
, Italic
, Underline
, StrikeOut
,
215 CharSet
, OutputPrecision
, ClipPrecision
, Quality
, PitchAndFamily
, StringU
.Buffer
);
217 RtlFreeUnicodeString(&StringU
);
234 DWORD OutputPrecision
,
237 DWORD PitchAndFamily
,
241 return W32kCreateFont(Height
, Width
, Escapement
, Orientation
, Weight
, Italic
, Underline
, StrikeOut
,
242 CharSet
, OutputPrecision
, ClipPrecision
, Quality
, PitchAndFamily
, Face
);