annotate Gui/skin/font.h @ 8179:63a5e03f4346

Removed hard coded value for the length of the header separator. Used the value previous detected.
author bertrand
date Wed, 13 Nov 2002 09:02:55 +0000
parents 9246adcf95f0
children b8c271750450
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
1
6218
8cfddba867b4 fix text render chrash ...
pontscho
parents: 2082
diff changeset
2 #ifndef _FONT_H
8cfddba867b4 fix text render chrash ...
pontscho
parents: 2082
diff changeset
3 #define _FONT_H
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
4
8058
9246adcf95f0 cosmetic
pontscho
parents: 6755
diff changeset
5 #include "../bitmap.h"
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
6
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
7 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
8 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
9 int x,y; // location
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
10 int sx,sy; // size
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
11 } fntChar;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
12
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
13 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
14 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
15 fntChar Fnt[256];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
16 txSample Bitmap;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
17 char name[128];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
18 } bmpFont;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
19
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
20 extern txSample Bitmap;
6218
8cfddba867b4 fix text render chrash ...
pontscho
parents: 2082
diff changeset
21 extern bmpFont * Fonts[26];
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
22
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
23 extern int fntAddNewFont( char * name );
1829
a4156c8cdd57 add font free func.
pontscho
parents: 1693
diff changeset
24 extern void fntFreeFont( void );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
25 extern int fntFindID( char * name );
6755
a31b9f15cbff - fix audio equalizer
pontscho
parents: 6218
diff changeset
26 extern int fntTextHeight( int id,char * str );
a31b9f15cbff - fix audio equalizer
pontscho
parents: 6218
diff changeset
27 extern int fntTextWidth( int id,char * str );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
28
6218
8cfddba867b4 fix text render chrash ...
pontscho
parents: 2082
diff changeset
29 extern int fntRead( char * path,char * fname );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
30 extern txSample * fntRender( int id,int px,int sx,char * fmt,... );
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
31
2082
016f6d583733 missing newlines fixed
arpi
parents: 1829
diff changeset
32 #endif
016f6d583733 missing newlines fixed
arpi
parents: 1829
diff changeset
33