Lines Matching defs:font

45 	in the largest font for a particular device
46 eliminates the "font X too big for position Y"
65 makes the font tables for fonts F only,
83 F.out contains the font header, width, kern, codes, and fitab.
97 struct Font font;
106 char fitab[NFITAB]; /* font index table: position of char i on this font. */
109 #define FSIZE 256 /* size of a physical font (e.g., 102 for cat) */
110 char width[FSIZE]; /* width table for a physical font */
112 char code[FSIZE]; /* actual device codes for a physical font */
115 char fname[NFONT][10]; /* temp space to hold default font names */
117 int fflag = 0; /* on if font table to be written */
192 write(fdout, &font, sizeof(struct Font));
193 write(fdout, width, font.nwfont & BYTEMASK);
194 write(fdout, kern, font.nwfont & BYTEMASK);
195 write(fdout, code, font.nwfont & BYTEMASK);
217 dofont(name) /* create fitab and width tab for font */
226 fprintf(stderr, "makedev: can't open font %s\n", name);
235 font.specfont = font.ligfont = spacewidth = 0;
240 fscanf(fin, "%s", font.namefont);
242 fscanf(fin, "%s", font.intname);
244 font.specfont = 1;
246 fscanf(fin, "%1s", &font.spare1);
248 font.ligfont = getlig(fin);
251 width[0] = spacewidth; /* width of space on this font */
282 fprintf(stderr, "makedev: font %s: %s not in charset\n", name, ch);
290 fprintf(stderr, "font %s too big\n", name);
293 font.nwfont = n;
300 write(fdout, &font, sizeof(struct Font));
301 write(fdout, width, font.nwfont & BYTEMASK);
302 write(fdout, kern, font.nwfont & BYTEMASK);
303 write(fdout, code, font.nwfont & BYTEMASK);
308 font.namefont, nw, width[0], v);