49 lines
939 B
C
49 lines
939 B
C
/*
|
|
* GDI font definitions
|
|
*
|
|
* Copyright 1994 Alexandre Julliard
|
|
*/
|
|
|
|
#ifndef __WINE_FONT_H
|
|
#define __WINE_FONT_H
|
|
|
|
#include "gdi.h"
|
|
|
|
#pragma pack(1)
|
|
|
|
/* GDI logical font object */
|
|
typedef struct
|
|
{
|
|
GDIOBJHDR header;
|
|
LOGFONT16 logfont WINE_PACKED;
|
|
} FONTOBJ;
|
|
|
|
#pragma pack(4)
|
|
|
|
/* may be switched... */
|
|
#define GGO_BITMAP 0x4F4D
|
|
#define GGO_NATIVE 0x4F50
|
|
typedef struct
|
|
{
|
|
UINT16 gmBlackBoxX;
|
|
UINT16 gmBlackBoxY;
|
|
POINT16 gmptGlyphOrigin;
|
|
int gmCellIncX;
|
|
int gmCellIncY;
|
|
} GLYPHMETRICS,*LPGLYPHMETRICS;
|
|
typedef struct
|
|
{
|
|
DWORD eM11; /* all type FIXED in Borlands Handbook */
|
|
DWORD eM12;
|
|
DWORD eM21;
|
|
DWORD eM22;
|
|
} MAT2,*LPMAT2;
|
|
|
|
|
|
extern BOOL32 FONT_Init( void );
|
|
extern INT16 FONT_GetObject16( FONTOBJ * font, INT16 count, LPSTR buffer );
|
|
extern INT32 FONT_GetObject32A( FONTOBJ * font, INT32 count, LPSTR buffer );
|
|
extern HFONT16 FONT_SelectObject( DC * dc, HFONT16 hfont, FONTOBJ * font );
|
|
|
|
#endif /* __WINE_FONT_H */
|