4 * Copyright 1994 Alexandre Julliard
14 /* GDI logical font object */
30 WORD dfInternalLeading;
31 WORD dfExternalLeading;
39 BYTE dfPitchAndFamily;
50 CHAR szDeviceName[60]; /* FIXME: length unknown */
51 CHAR szFaceName[60]; /* dito */
52 } FONTDIR16, *LPFONTDIR16;
56 #define FONTCACHE 32 /* dynamic font cache size */
58 extern BOOL FONT_Init( UINT16* pTextCaps );
59 extern INT16 FONT_GetObject16( FONTOBJ * font, INT16 count, LPSTR buffer );
60 extern INT FONT_GetObjectA( FONTOBJ * font, INT count, LPSTR buffer );
61 extern INT FONT_GetObjectW( FONTOBJ * font, INT count, LPSTR buffer );
62 extern void FONT_LogFontATo16( const LOGFONTA* font32, LPLOGFONT16 font16 );
63 extern void FONT_LogFontWTo16( const LOGFONTW* font32, LPLOGFONT16 font16 );
64 extern void FONT_LogFont16ToA( const LOGFONT16* font16, LPLOGFONTA font32 );
65 extern void FONT_LogFont16ToW( const LOGFONT16* font16, LPLOGFONTW font32 );
66 extern void FONT_TextMetricATo16(const TEXTMETRICA *ptm32, LPTEXTMETRIC16 ptm16 );
67 extern void FONT_TextMetricWTo16(const TEXTMETRICW *ptm32, LPTEXTMETRIC16 ptm16 );
68 extern void FONT_TextMetric16ToA(const TEXTMETRIC16 *ptm16, LPTEXTMETRICA ptm32 );
69 extern void FONT_TextMetric16ToW(const TEXTMETRIC16 *ptm16, LPTEXTMETRICW ptm32 );
70 extern void FONT_TextMetricAToW(const TEXTMETRICA *ptm32A, LPTEXTMETRICW ptm32W );
71 extern void FONT_NewTextMetricEx16ToW(const NEWTEXTMETRICEX16*, LPNEWTEXTMETRICEXW);
72 extern void FONT_EnumLogFontEx16ToW(const ENUMLOGFONTEX16*, LPENUMLOGFONTEXW);
74 extern LPWSTR FONT_mbtowc(HDC, LPCSTR, INT, INT*, UINT*);
76 extern DWORD WineEngAddRefFont(GdiFont);
77 extern GdiFont WineEngCreateFontInstance(HFONT);
78 extern DWORD WineEngDecRefFont(GdiFont);
79 extern DWORD WineEngEnumFonts(LPLOGFONTW, DEVICEFONTENUMPROC, LPARAM);
80 extern BOOL WineEngGetCharWidth(GdiFont, UINT, UINT, LPINT);
81 extern DWORD WineEngGetFontData(GdiFont, DWORD, DWORD, LPVOID, DWORD);
82 extern DWORD WineEngGetGlyphOutline(GdiFont, UINT glyph, UINT format,
83 LPGLYPHMETRICS, DWORD buflen, LPVOID buf,
85 extern UINT WineEngGetOutlineTextMetrics(GdiFont, UINT, LPOUTLINETEXTMETRICW);
86 extern BOOL WineEngGetTextExtentPoint(GdiFont, LPCWSTR, INT, LPSIZE);
87 extern BOOL WineEngGetTextMetrics(GdiFont, LPTEXTMETRICW);
88 extern BOOL WineEngInit(void);
90 #endif /* __WINE_FONT_H */