|
|
1.1 root 1: .TH VFONT 5 2/26/79 5
2: .UC
3: .SH NAME
4: vfont \- font formats for the Benson-Varian or Versatec
5: .SH SYNOPSIS
6: .B /usr/lib/vfont/\(**
7: .SH DESCRIPTION
8: The fonts for the printer/plotters have the following format.
9: Each file contains a header, an array of 256 character description
10: structures, and then the bit maps for the characters themselves.
11: The header has the following format:
12: .in +5
13: .nf
14: .sp
15: .ta 8n +\w'unsigned short 'u
16: struct header {
17: short magic;
18: unsigned short size;
19: short maxx;
20: short maxy;
21: short xtnd;
22: } header;
23: .fi
24: .in -5
25: .PP
26: The
27: .I magic
28: number is 0436 (octal).
29: The
30: .I maxx,
31: .I maxy,
32: and
33: .I xtnd
34: fields are not used at the current time.
35: .I Maxx
36: and
37: .I maxy
38: are intended to be the maximum horizontal and vertical size of
39: any glyph in the font, in raster lines.
40: The
41: .I size
42: is the size of the
43: bit maps for the characters in bytes.
44: Before the maps for the characters is an array of 256 structures for
45: each of the possible characters in the font.
46: Each element of the array has the form:
47: .in +5
48: .nf
49: .sp
50: .ta 8n +\w'unsigned short 'u
51: struct dispatch {
52: unsigned short addr;
53: short nbytes;
54: char up;
55: char down;
56: char left;
57: char right;
58: short width;
59: };
60: .fi
61: .in -5
62: .PP
63: The
64: .I nbytes
65: field is nonzero for characters which actually exist.
66: For such characters, the
67: .I addr
68: field is an offset into the rest of the file where the data for
69: that character begins.
70: There are
71: .I up+down
72: rows of data for each character,
73: each of which has
74: .I left+right
75: bits, rounded up to a number of bytes.
76: The
77: .I width
78: field is not used by vcat,
79: although it is used by
80: .IR vwidth (1)
81: to make width tables for
82: .IR troff .
83: It represents the logical width of the glyph, in raster lines,
84: and shows where the base point of the next glyph would be.
85: .SH FILES
86: /usr/lib/vfont/\(**
87: .SH SEE ALSO
88: troff(1), pti(1), vpr(1), vtroff(1), vwidth(1), vfontinfo(1), fed(1)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.