Use Callout table instead of direct GetProcAddress.
[wine/multimedia.git] / include / font.h
bloba1bc16a242279a0990c6fc7f70310b0f7e315484
1 /*
2 * GDI font definitions
4 * Copyright 1994 Alexandre Julliard
5 */
7 #ifndef __WINE_FONT_H
8 #define __WINE_FONT_H
10 #include "gdi.h"
12 #pragma pack(1)
14 /* GDI logical font object */
15 typedef struct
17 GDIOBJHDR header;
18 LOGFONT16 logfont WINE_PACKED;
19 } FONTOBJ;
21 typedef struct {
22 WORD dfVersion;
23 DWORD dfSize;
24 CHAR dfCopyright[60];
25 WORD dfType;
26 WORD dfPoints;
27 WORD dfVertRes;
28 WORD dfHorizRes;
29 WORD dfAscent;
30 WORD dfInternalLeading;
31 WORD dfExternalLeading;
32 BYTE dfItalic;
33 BYTE dfUnderline;
34 BYTE dfStrikeOut;
35 WORD dfWeight;
36 BYTE dfCharSet;
37 WORD dfPixWidth;
38 WORD dfPixHeight;
39 BYTE dfPitchAndFamily;
40 WORD dfAvgWidth;
41 WORD dfMaxWidth;
42 BYTE dfFirstChar;
43 BYTE dfLastChar;
44 BYTE dfDefaultChar;
45 BYTE dfBreakChar;
46 WORD dfWidthBytes;
47 DWORD dfDevice;
48 DWORD dfFace;
49 DWORD dfReserved;
50 CHAR szDeviceName[60]; /* FIXME: length unknown */
51 CHAR szFaceName[60]; /* dito */
52 } FONTDIR16, *LPFONTDIR16;
54 #pragma pack(4)
56 #define FONTCACHE 32 /* dynamic font cache size */
58 extern BOOL32 FONT_Init( UINT16* pTextCaps );
59 extern INT16 FONT_GetObject16( FONTOBJ * font, INT16 count, LPSTR buffer );
60 extern INT32 FONT_GetObject32A( FONTOBJ * font, INT32 count, LPSTR buffer );
61 extern INT32 FONT_GetObject32W( FONTOBJ * font, INT32 count, LPSTR buffer );
62 extern void FONT_LogFont32ATo16( const LOGFONT32A* font32, LPLOGFONT16 font16 );
63 extern void FONT_LogFont32WTo16( const LOGFONT32W* font32, LPLOGFONT16 font16 );
64 extern void FONT_LogFont16To32A( const LPLOGFONT16 font16, LPLOGFONT32A font32 );
65 extern void FONT_LogFont16To32W( const LPLOGFONT16 font16, LPLOGFONT32W font32 );
66 extern void FONT_TextMetric32Ato16(const LPTEXTMETRIC32A ptm32, LPTEXTMETRIC16 ptm16 );
67 extern void FONT_TextMetric32Wto16(const LPTEXTMETRIC32W ptm32, LPTEXTMETRIC16 ptm16 );
68 extern void FONT_TextMetric16to32A(const LPTEXTMETRIC16 ptm16, LPTEXTMETRIC32A ptm32 );
69 extern void FONT_TextMetric16to32W(const LPTEXTMETRIC16 ptm16, LPTEXTMETRIC32W ptm32 );
70 extern void FONT_TextMetric32Ato32W(const LPTEXTMETRIC32A ptm32A, LPTEXTMETRIC32W ptm32W );
74 #endif /* __WINE_FONT_H */