typedef struct Xfont Xfont; enum { PageSize = 1<<8, PageMask = (1<<24)/PageSize - 1, NPAGE = (1<<24)/PageSize, }; struct Xfont { char *name; char *fontfile; int index; int loaded; int npage; uchar page[NPAGE]; double fheight; // of 1pt double fascent; int height; // filled with ftscale() for given size int ascent; }; void xfontinit(void); char* xfload(Xfont*); void xfscale(Xfont*, int); Memsubfont* mksubfont(Xfont*, char*, int, int, int, int); extern Xfont *xfont; extern int nxfont;