File:  [RetroPC.NET] / np2 / x11 / fontmng.h
Revision 1.3: download - view: text, annotated - select for diffs
Sat Dec 20 01:08:01 2003 JST (21 years, 10 months ago) by monaka
Branches: MAIN
CVS tags: VER_0_78, VER_0_77, VER_0_76, VER_0_75, VER_0_74, VER_0_73, HEAD
Qt 2.x and SDL.

#ifndef	NP2_X11_FONTMNG_H__
#define	NP2_X11_FONTMNG_H__

enum {
	FDAT_BOLD		= 0x01,
	FDAT_PROPORTIONAL	= 0x02,
	FDAT_ALIAS		= 0x04,
	FDAT_ANSI		= 0x08
};

enum {
	FDAT_DEPTH		= 255,
	FDAT_DEPTHBIT		= 8
};

typedef struct {
	int	width;
	int	height;
	int	pitch;
} _FNTDAT, *FNTDAT;

#ifdef __cplusplus
extern "C" {
#endif

BOOL fontmng_init(void);
void* fontmng_create(int size, UINT type, const TCHAR *fontface);
void fontmng_destroy(void *hdl);
void fontmng_terminate(void);

BOOL fontmng_getsize(void *hdl, const char *string, POINT_T *pt);
BOOL fontmng_getdrawsize(void *hdl, const char *string, POINT_T *pt);
FNTDAT fontmng_get(void *hdl, const char *string);

#ifdef __cplusplus
}
#endif

#endif	/* NP2_X11_FONTMNG_H__ */

RetroPC.NET-CVS <cvs@retropc.net>