2 |
|
/* |
3 |
|
* Header file for font handling routines |
4 |
|
*/ |
5 |
+ |
#ifndef _RAD_FONT_H_ |
6 |
+ |
#define _RAD_FONT_H_ |
7 |
|
|
8 |
< |
#include "copyright.h" |
8 |
> |
#ifdef __cplusplus |
9 |
> |
extern "C" { |
10 |
> |
#endif |
11 |
|
|
12 |
|
typedef unsigned char GORD; |
13 |
|
|
20 |
|
#define gvlist(g) ((GORD *)((g)+1)) |
21 |
|
|
22 |
|
typedef struct font { |
23 |
< |
int nref; /* number of references */ |
20 |
< |
GLYPH *fg[256]; /* font glyphs */ |
21 |
< |
short mwidth, mheight; /* mean glyph width and height */ |
22 |
< |
char *name; /* font file name */ |
23 |
> |
char name[64]; /* font file name */ |
24 |
|
struct font *next; /* next font in list */ |
25 |
+ |
unsigned short nref; /* number of references */ |
26 |
+ |
short mwidth, mheight; /* mean glyph width and height */ |
27 |
+ |
short maxgv; /* max # glyph vertices */ |
28 |
+ |
GLYPH *fg[256]; /* font glyphs */ |
29 |
|
} FONT; |
30 |
|
|
31 |
|
extern int retainfonts; /* retain loaded fonts? */ |
32 |
|
|
28 |
– |
#ifdef NOPROTO |
29 |
– |
|
30 |
– |
extern FONT *getfont(); |
31 |
– |
extern void freefont(); |
32 |
– |
extern int uniftext(); |
33 |
– |
extern int squeeztext(); |
34 |
– |
extern int proptext(); |
35 |
– |
|
36 |
– |
#else |
37 |
– |
|
33 |
|
extern FONT *getfont(char *fname); |
34 |
|
extern void freefont(FONT *f); |
35 |
|
extern int uniftext(short *sp, char *tp, FONT *f); |
36 |
|
extern int squeeztext(short *sp, char *tp, FONT *f, int cis); |
37 |
|
extern int proptext(short *sp, char *tp, FONT *f, int cis, int nsi); |
38 |
|
|
39 |
+ |
#ifdef __cplusplus |
40 |
+ |
} |
41 |
|
#endif |
42 |
+ |
#endif /* _RAD_FONT_H_ */ |
43 |
+ |
|