2 #ifndef __WIN32K_TEXT_H
3 #define __WIN32K_TEXT_H
5 /* GDI logical font object */
11 /* Internal interface */
13 #define TEXTOBJ_AllocText() \
14 ((HFONT) GDIOBJ_AllocObj (sizeof (TEXTOBJ), GO_FONT_MAGIC))
15 #define TEXTOBJ_FreeText(hBMObj) GDIOBJ_FreeObj((HGDIOBJ) hBMObj, GO_FONT_MAGIC, GDIOBJFLAG_DEFAULT)
17 #define TEXTOBJ_HandleToPtr(hBMObj) \
18 ((PTEXTOBJ) GDIOBJ_HandleToPtr ((HGDIOBJ) hBMObj, GO_FONT_MAGIC))
19 #define TEXTOBJ_PtrToHandle(hBMObj) \
20 ((HFONT) GDIOBJ_PtrToHandle ((PGDIOBJ) hBMObj, GO_FONT_MAGIC))
22 #define TEXTOBJ_LockText(hBMObj) ((PTEXTOBJ) GDIOBJ_LockObj ((HGDIOBJ) hBMObj, GO_FONT_MAGIC))
23 #define TEXTOBJ_UnlockText(hBMObj) GDIOBJ_UnlockObj ((HGDIOBJ) hBMObj, GO_FONT_MAGIC)
27 W32kAddFontResource(LPCWSTR Filename);
31 W32kCreateFont(int Height,
40 DWORD OutputPrecision,
48 W32kCreateFontIndirect(CONST LPLOGFONT lf);
52 W32kCreateScalableFontResource(DWORD Hidden,
59 W32kEnumFontFamilies(HDC hDC,
61 FONTENUMPROC EnumFontFamProc,
66 W32kEnumFontFamiliesEx(HDC hDC,
68 FONTENUMPROC EnumFontFamExProc,
74 W32kEnumFonts(HDC hDC,
76 FONTENUMPROC FontFunc,
81 W32kExtTextOut(HDC hDC,
92 W32kGetAspectRatioFilterEx(HDC hDC,
97 W32kGetCharABCWidths(HDC hDC,
104 W32kGetCharABCWidthsFloat(HDC hDC,
111 W32kGetCharacterPlacement(HDC hDC,
115 LPGCP_RESULTS Results,
120 W32kGetCharWidth(HDC hDC,
127 W32kGetCharWidth32(HDC hDC,
134 W32kGetCharWidthFloat(HDC hDC,
141 W32kGetFontLanguageInfo(HDC hDC);
145 W32kGetGlyphOutline(HDC hDC,
155 W32kGetKerningPairs(HDC hDC,
157 LPKERNINGPAIR krnpair);
161 W32kGetOutlineTextMetrics(HDC hDC,
163 LPOUTLINETEXTMETRIC otm);
167 W32kGetRasterizerCaps(LPRASTERIZER_STATUS rs,
172 W32kGetTextCharset(HDC hDC);
176 W32kGetTextCharsetInfo(HDC hDC,
182 W32kGetTextExtentExPoint(HDC hDC,
192 W32kGetTextExtentPoint(HDC hDC,
199 W32kGetTextExtentPoint32(HDC hDC,
206 W32kGetTextFace(HDC hDC,
212 W32kGetTextMetrics(HDC hDC,
217 W32kPolyTextOut(HDC hDC,
218 CONST LPPOLYTEXT txt,
223 W32kRemoveFontResource(LPCWSTR FileName);
227 W32kSetMapperFlags(HDC hDC,
232 W32kSetTextAlign(HDC hDC,
237 W32kSetTextColor(HDC hDC,
242 W32kSetTextJustification(HDC hDC,
256 W32kTranslateCharsetInfo(PDWORD Src,