| 20 |
|
#define gvlist(g) ((GORD *)((g)+1)) |
| 21 |
|
|
| 22 |
|
typedef struct font { |
| 23 |
– |
int nref; /* number of references */ |
| 24 |
– |
GLYPH *fg[256]; /* font glyphs */ |
| 25 |
– |
short mwidth, mheight; /* mean glyph width and height */ |
| 23 |
|
char name[64]; /* font file name */ |
| 24 |
|
struct font *next; /* next font in list */ |
| 25 |
+ |
int nref; /* number of references */ |
| 26 |
+ |
short mwidth, mheight; /* mean glyph width and height */ |
| 27 |
+ |
GLYPH *fg[256]; /* font glyphs */ |
| 28 |
|
} FONT; |
| 29 |
|
|
| 30 |
|
extern int retainfonts; /* retain loaded fonts? */ |
| 31 |
|
|
| 32 |
– |
|
| 32 |
|
extern FONT *getfont(char *fname); |
| 33 |
|
extern void freefont(FONT *f); |
| 34 |
|
extern int uniftext(short *sp, char *tp, FONT *f); |
| 35 |
|
extern int squeeztext(short *sp, char *tp, FONT *f, int cis); |
| 36 |
|
extern int proptext(short *sp, char *tp, FONT *f, int cis, int nsi); |
| 38 |
– |
|
| 37 |
|
|
| 38 |
|
#ifdef __cplusplus |
| 39 |
|
} |