summaryrefslogtreecommitdiffstats
path: root/Gui/skin/font.h
diff options
context:
space:
mode:
Diffstat (limited to 'Gui/skin/font.h')
-rw-r--r--Gui/skin/font.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/Gui/skin/font.h b/Gui/skin/font.h
new file mode 100644
index 0000000000..386a61438e
--- /dev/null
+++ b/Gui/skin/font.h
@@ -0,0 +1,31 @@
+
+#ifndef _MYFONT
+#define _MYFONT
+
+#include "../bitmap/bitmap.h"
+
+typedef struct
+{
+ int x,y; // location
+ int sx,sy; // size
+} fntChar;
+
+typedef struct
+{
+ fntChar Fnt[256];
+ txSample Bitmap;
+ char name[128];
+} bmpFont;
+
+extern fntChar Fnt[256];
+extern txSample Bitmap;
+extern bmpFont * Fonts[25];
+
+extern int fntAddNewFont( char * name );
+extern void fntFreeFont( int id );
+extern int fntFindID( char * name );
+
+extern int fntRead( char * path,char * fname,int id );
+extern txSample * fntRender( int id,int px,int sx,char * fmt,... );
+
+#endif \ No newline at end of file