Annotation of 43BSDReno/old/vpr/man/vfont.5, revision 1.1.1.1

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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.