BSD 3 development
[unix-history] / usr / man / man5 / vfont.5
CommitLineData
56bebdcf
BJ
1.TH VFONT 5 2/26/79 5
2.UC
3.SH NAME
4vfont \- font formats for the Versatec
5.SH SYNOPSIS
6.B /usr/lib/vfont/*
7.SH DESCRIPTION
8The fonts for the Versatec have the following format.
9Each file contains a header, an array of 256 character description
10structures, and then the bit maps for the characters themselves.
11The header has the following format:
12.in +5
13'nf
14.sp
15\fBstruct\fR header {
16 \fBshort\fR magic;
17 \fBunsigned\fR \fBshort\fR size;
18 \fBshort\fR maxx;
19 \fBshort\fR maxy;
20 \fBshort\fR xtnd;
21} header;
22.fi
23.in -5
24.PP
25The
26.I magic
27number is 0436 (octal).
28The
29.I maxx,
30.I maxy,
31and
32.I xtnd
33fields are not used.
34The
35.I size
36is the size of the
37bit maps for the characters.
38Before the maps for the characters is an array of 256 structures for
39each of the possible characters in the font.
40Each element of the array has the form:
41.in +5
42'nf
43.sp
44\fBstruct\fR dispatch {
45 \fBunsigned\fR \fBshort\fR addr;
46 \fBshort\fR nbytes;
47 \fBchar\fR up;
48 \fBchar\fR down;
49 \fBchar\fR left;
50 \fBchar\fR right;
51 \fBshort\fR width;
52};
53.fi
54.in -5
55.PP
56The
57.I nbytes
58field is nonzero for characters which actually exist.
59For such characters, the
60.I addr
61field is an offset into the rest of the file where the data for
62that character begins.
63There are
64.I up+down
65rows of data for each character,
66each of which has
67.I left+right
68bits, rounded up to a number of bytes.
69The
70.I width
71field is not used.
72.SH FILES
73/usr/lib/vfont/*
74.SH SEE ALSO
75troff(1), pti(1), vpr(1), vtroff(1)
76.SH BUGS
77This description was made by looking at the source for
78.I vcat,
79a utility of
80.IR vpr (1),
81hence it is incomplete and quite likely inaccurate.
82If you want to be sure of the details, look at the source for
83.I vcat.
84.PP
85The standard fonts have many problems in them; in particular, not
86all sizes are available, the 3/4 em dash is the same as the hyphen
87in appearance (we are currently using math minus as a replacement),
88the three character ligatures don't work,
89and there are a number of problems with the special font (e.g. no hands
90as well as more serious problems).