Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

troff(1)

pti(1)

vpr(1)

vtroff(1)

VFONT(5)  —  Unix Programmer’s Manual

NAME

vfont − font formats for the Versatec

SYNOPSIS

/usr/lib/vfont/∗

DESCRIPTION

The fonts for the Versatec have the following format.  Each file contains a header, an array of 256 character description structures, and then the bit maps for the characters themselves.  The header has the following format:

struct header {
shortmagic;
unsignedshort size;
shortmaxx;
shortmaxy;
shortxtnd;
} header;

The magic number is 0436 (octal).  The maxx, maxy, and xtnd fields are not used.  The size is the size of the bit maps for the characters.  Before the maps for the characters is an array of 256 structures for each of the possible characters in the font.  Each element of the array has the form:

struct dispatch {
unsignedshort addr;
shortnbytes;
charup;
chardown;
charleft;
charright;
shortwidth;
};

The nbytes field is nonzero for characters which actually exist.  For such characters, the addr field is an offset into the rest of the file where the data for that character begins.  There are up+down rows of data for each character, each of which has left+right bits, rounded up to a number of bytes.  The width field is not used. 

FILES

/usr/lib/vfont/∗

SEE ALSO

troff(1), pti(1), vpr(1), vtroff(1)

BUGS

This description was made by looking at the source for vcat, a utility of vpr(1), hence it is incomplete and quite likely inaccurate. If you want to be sure of the details, look at the source for vcat. 

The standard fonts have many problems in them; in particular, not all sizes are available, the 3/4 em dash is the same as the hyphen in appearance (we are currently using math minus as a replacement), the three character ligatures don’t work, and there are a number of problems with the special font (e.g. no hands as well as more serious problems). 

3rd Berkeley Distribution  —  2/26/79

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026