VFONT(5) UNIX Programmer's 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 for- mat. Each file contains a header, an array of 256 character description structures, and then the bit maps for the char- acters themselves. The header has the following format: struct header { short magic; unsigned short size; short maxx; short maxy; short xtnd; } header; The _m_a_g_i_c number is 0436 (octal). The _m_a_x_x, _m_a_x_y, and _x_t_n_d fields are not used at the current time. _M_a_x_x and _m_a_x_y are intended to be the maximum horizontal and vertical size of any glyph in the font, in raster lines. The _s_i_z_e 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 ele- ment of the array has the form: struct dispatch { unsigned short addr; short nbytes; char up; char down; char left; char right; short width; }; The _n_b_y_t_e_s field is nonzero for characters which actually exist. For such characters, the _a_d_d_r field is an offset into the rest of the file where the data for that character begins. There are _u_p+_d_o_w_n rows of data for each character, each of which has _l_e_f_t+_r_i_g_h_t bits, rounded up to a number of bytes. The _w_i_d_t_h field is not used by vcat, although it is to make width tables for _t_r_o_f_f. 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/* Printed 11/26/99 October 22, 1996 1 VFONT(5) UNIX Programmer's Manual VFONT(5) SEE ALSO troff(1), pti(1), vfontinfo(1) Printed 11/26/99 October 22, 1996 2