Release 980201
[wine/multimedia.git] / include / font.h
blob7ccc65c8a194898860ff914a7ce927f0ace4e412
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 #pragma pack(4)
23 #define FONTCACHE 32 /* dynamic font cache size */
25 extern BOOL32 FONT_Init( UINT16* pTextCaps );
26 extern INT16 FONT_GetObject16( FONTOBJ * font, INT16 count, LPSTR buffer );
27 extern INT32 FONT_GetObject32A( FONTOBJ * font, INT32 count, LPSTR buffer );
29 extern void FONT_LogFont32ATo16( const LOGFONT32A* font32, LPLOGFONT16 font16 );
30 extern void FONT_LogFont32WTo16( const LOGFONT32W* font32, LPLOGFONT16 font16 );
31 extern void FONT_LogFont16To32A( const LPLOGFONT16 font16, LPLOGFONT32A font32 );
32 extern void FONT_LogFont16To32W( const LPLOGFONT16 font16, LPLOGFONT32W font32 );
33 extern void FONT_TextMetric32Ato16(const LPTEXTMETRIC32A ptm32, LPTEXTMETRIC16 ptm16 );
34 extern void FONT_TextMetric32Wto16(const LPTEXTMETRIC32W ptm32, LPTEXTMETRIC16 ptm16 );
35 extern void FONT_TextMetric16to32A(const LPTEXTMETRIC16 ptm16, LPTEXTMETRIC32A ptm32 );
36 extern void FONT_TextMetric16to32W(const LPTEXTMETRIC16 ptm16, LPTEXTMETRIC32W ptm32 );
37 extern void FONT_TextMetric32Ato32W(const LPTEXTMETRIC32A ptm32A, LPTEXTMETRIC32W ptm32W );
41 #endif /* __WINE_FONT_H */