aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/fontsrv/a.h
blob: ffe46ae6ab77c20695e325ea600bc2327c51b307 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
typedef struct XFont XFont;
XFont *xfont;
int nxfont;

struct XFont
{
	char *name;
	int loaded;
	uchar range[256];	// range[i] == whether to have subfont i<<8 to (i+1)<<8.
	int nrange;
	int unit;
	double height;
	double originy;

	// fontconfig workarround, as FC_FULLNAME does not work for matching fonts.
	char *fontfile;
	int  index;
};

void	loadfonts(void);
void	load(XFont*);
Memsubfont*	mksubfont(char*, int, int, int, int);

extern XFont *xfont;
extern int nxfont;
void *emalloc9p(ulong);
extern Memsubfont *defont;

void	drawpjw(Memimage*, Fontchar*, int, int, int, int);