|
|
1.1 root 1: /*
2: font.h: characteristics of fonts
3: */
4:
5: typedef struct { /* data on one character */
6: short num; /* character number:
7: 0 -> not on this font
8: >= 128 -> its number among all Cxy's */
9: uchar wid; /* width */
10: uchar kern; /* ascender/descender */
11: short code; /* char code for actual device. used for \N */
12: } Chwid;
13:
14: typedef struct { /* characteristics of a font */
15: short name; /* short name, e.g., BI (2 chars) */
16: char longname[10]; /* long name of this font (e.g., "Bembo" */
17: short nchars; /* number of width entries for this font */
18: char specfont; /* 1 == special font */
19: short spacewidth; /* width of space on this font */
20: Chwid *wp; /* widths, etc., of the real characters */
21: char ligfont; /* 1 == ligatures exist on this font */
22: } Font;
23:
24: /* ligatures, ORed into ligfont */
25:
26: #define LFF 01
27: #define LFI 02
28: #define LFL 04
29: #define LFFI 010
30: #define LFFL 020
31:
32: extern int nchnames; /* number of Cxy names currently seen */
33: extern char *chnames[]; /* chnames[n-128] -> name of char n */
34: extern char *chname(); /* maps n >= 128 to name of char */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.