annotate Gui/skin/font.h @ 9980:7bd7a1aa605f

darwin ldd support patch by Steven M. Schultz <sms@2BSD.COM>
author alex
date Thu, 24 Apr 2003 18:55:43 +0000
parents b8c271750450
children 0e1471d9da74
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"
8864
b8c271750450 - sync with x11_common
pontscho
parents: 8058
diff changeset
6 #include "../app.h"
b8c271750450 - sync with x11_common
pontscho
parents: 8058
diff changeset
7
b8c271750450 - sync with x11_common
pontscho
parents: 8058
diff changeset
8 #define fntAlignLeft 0
b8c271750450 - sync with x11_common
pontscho
parents: 8058
diff changeset
9 #define fntAlignCenter 1
b8c271750450 - sync with x11_common
pontscho
parents: 8058
diff changeset
10 #define fntAlignRight 2
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
11
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
12 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
13 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
14 int x,y; // location
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
15 int sx,sy; // size
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
16 } fntChar;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
17
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
18 typedef struct
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
19 {
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
20 fntChar Fnt[256];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
21 txSample Bitmap;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
22 char name[128];
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
23 } bmpFont;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
24
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
25 extern txSample Bitmap;
6218
8cfddba867b4 fix text render chrash ...
pontscho
parents: 2082
diff changeset
26 extern bmpFont * Fonts[26];
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
27
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
28 extern int fntAddNewFont( char * name );
1829
a4156c8cdd57 add font free func.
pontscho
parents: 1693
diff changeset
29 extern void fntFreeFont( void );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
30 extern int fntFindID( char * name );
6755
a31b9f15cbff - fix audio equalizer
pontscho
parents: 6218
diff changeset
31 extern int fntTextHeight( int id,char * str );
a31b9f15cbff - fix audio equalizer
pontscho
parents: 6218
diff changeset
32 extern int fntTextWidth( int id,char * str );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
33
6218
8cfddba867b4 fix text render chrash ...
pontscho
parents: 2082
diff changeset
34 extern int fntRead( char * path,char * fname );
8864
b8c271750450 - sync with x11_common
pontscho
parents: 8058
diff changeset
35 extern txSample * fntRender( wItem * item,int px,char * fmt,... );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
36
2082
016f6d583733 missing newlines fixed
arpi
parents: 1829
diff changeset
37 #endif
016f6d583733 missing newlines fixed
arpi
parents: 1829
diff changeset
38