diff Gui/skin/font.h @ 1693:d237c5d4b216

GUI version n-1
author arpi
date Sat, 25 Aug 2001 21:04:29 +0000
parents
children a4156c8cdd57
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Gui/skin/font.h	Sat Aug 25 21:04:29 2001 +0000
@@ -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