Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

vwidth(1) [bsd man page]

VWIDTH(1)						      General Commands Manual							 VWIDTH(1)

NAME
vwidth - make troff width table for a font SYNOPSIS
vwidth fontfile pointsize > ftxx.c cc -c ftxx.c mv ftxx.o /usr/share/font/ftxx DESCRIPTION
Vwidth translates from the width information stored in the vfont style format to the format expected by troff. Troff wants an object file in a.out(5) format. (This fact does not seem to be documented anywhere.) Troff should look directly in the font file but it doesn't. Vwidth should be used after editing a font with fed(1). It is not necessary to use vwidth unless you have made a change that would affect the width tables. Such changes include numerically editing the width field, adding a new character, and moving or copying a character to a new position. It is not always necessary to use vwidth if the physical width of the glyph (e.g. the number of columns in the bit matrix) has changed, but if it has changed much the logical width should probably be changed and vwidth run. Vwidth produces a C program on its standard output. This program should be run through the C compiler and the object (that is, the .o file) saved. The resulting file should be placed in /usr/share/font in the file ftxx where is a one or two letter code that is the logical (internal to troff) font name. This name can be found by looking in the file /usr/share/fontinfo/fname* where fname is the external name of the font. SEE ALSO
fed(1), vfont(5), troff(1), vtroff(1) BUGS
Produces the C file using obsolete syntax that the portable C compiler complains about. 4.2 Berkeley Distribution October 22, 1996 VWIDTH(1)

Check Out this Related Man Page

VFONT(5)							File Formats Manual							  VFONT(5)

NAME
vfont - font formats for the Benson-Varian or Versatec SYNOPSIS
/usr/share/vfont/* DESCRIPTION
The fonts for the printer/plotters have the following format. Each file contains a header, an array of 256 character description struc- tures, and then the bit maps for the characters themselves. The header has the following format: struct header { short magic; unsigned short size; short maxx; short maxy; short xtnd; } header; The magic number is 0436 (octal). The maxx, maxy, and xtnd fields are not used at the current time. Maxx and maxy are intended to be the maximum horizontal and vertical size of any glyph in the font, in raster lines. The size is the size of the bit maps for the characters in bytes. 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 { unsigned short addr; short nbytes; char up; char down; char left; char right; short width; }; 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 by vcat, although it is to make width tables for troff. It represents the logical width of the glyph, in raster lines, and shows where the base point of the next glyph would be. FILES
/usr/share/vfont/* SEE ALSO
troff(1), pti(1), vfontinfo(1) 7th Edition October 22, 1996 VFONT(5)
Man Page