1693
|
1
|
|
2 #ifndef _MYFONT
|
|
3 #define _MYFONT
|
|
4
|
|
5 #include "../bitmap/bitmap.h"
|
|
6
|
|
7 typedef struct
|
|
8 {
|
|
9 int x,y; // location
|
|
10 int sx,sy; // size
|
|
11 } fntChar;
|
|
12
|
|
13 typedef struct
|
|
14 {
|
|
15 fntChar Fnt[256];
|
|
16 txSample Bitmap;
|
|
17 char name[128];
|
|
18 } bmpFont;
|
|
19
|
|
20 extern fntChar Fnt[256];
|
|
21 extern txSample Bitmap;
|
|
22 extern bmpFont * Fonts[25];
|
|
23
|
|
24 extern int fntAddNewFont( char * name );
|
1829
|
25 extern void fntFreeFont( void );
|
1693
|
26 extern int fntFindID( char * name );
|
|
27
|
|
28 extern int fntRead( char * path,char * fname,int id );
|
|
29 extern txSample * fntRender( int id,int px,int sx,char * fmt,... );
|
|
30
|
|
31 #endif |