1VFONT(5) File Formats Manual VFONT(5)
2
3
4
6 vfont - font formats for the Benson-Varian or Versatec
7
9 /usr/share/vfont/∗
10
12 The fonts for the printer/plotters have the following format. Each
13 file contains a header, an array of 256 character description struc‐
14 tures, and then the bit maps for the characters themselves. The header
15 has the following format:
16
17 struct header {
18 short magic;
19 unsigned short size;
20 short maxx;
21 short maxy;
22 short xtnd;
23 } header;
24
25 The magic number is 0436 (octal). The maxx, maxy, and xtnd fields are
26 not used at the current time. Maxx and maxy are intended to be the
27 maximum horizontal and vertical size of any glyph in the font, in
28 raster lines. The size is the size of the bit maps for the characters
29 in bytes. Before the maps for the characters is an array of 256 struc‐
30 tures for each of the possible characters in the font. Each element of
31 the array has the form:
32
33 struct dispatch {
34 unsigned short addr;
35 short nbytes;
36 char up;
37 char down;
38 char left;
39 char right;
40 short width;
41 };
42
43 The nbytes field is nonzero for characters which actually exist. For
44 such characters, the addr field is an offset into the rest of the file
45 where the data for that character begins. There are up+down rows of
46 data for each character, each of which has left+right bits, rounded up
47 to a number of bytes. The width field is not used by vcat, although it
48 is to make width tables for troff. It represents the logical width of
49 the glyph, in raster lines, and shows where the base point of the next
50 glyph would be.
51
53 /usr/share/vfont/∗
54
56 troff(1), pti(1), vfontinfo(1)
57
58
59
607th Edition October 22, 1996 VFONT(5)