annotate Gui/skin/font.h @ 6809:0250f691037e

10L bugs founds by Jindrich Makovicka <makovick at MLinux dot fjfi dot cvut dotcz> Fix the eq
author albeu
date Fri, 26 Jul 2002 02:04:11 +0000
parents a31b9f15cbff
children 9246adcf95f0
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
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
5 #include "../bitmap/bitmap.h"
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