1 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 2 /* All Rights Reserved */ 3 4 5 #ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ 6 7 /* 8 * Copyright (c) 1980 Regents of the University of California. 9 * All rights reserved. The Berkeley software License Agreement 10 * specifies the terms and conditions for redistribution. 11 */ 12 13 /* 14 * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc. 15 * All Rights Reserved. 16 */ 17 18 19 /* 20 * The structures header and dispatch define the format of a font file. 21 * 22 * A font file contains one struct 'header', an array of NUM_DISPATCH struct 23 * 'dispatch'es, then an array of bytes containing bit maps. 24 * 25 * See vfont(5) for more details. 26 */ 27 28 #ifndef _vfont_h 29 #define _vfont_h 30 31 struct header { 32 short magic; /* Magic number VFONT_MAGIC */ 33 unsigned short size; /* Total # bytes of bitmaps */ 34 short maxx; /* Maximum horizontal glyph size */ 35 short maxy; /* Maximum vertical glyph size */ 36 short xtend; /* (unused?) */ 37 }; 38 #define VFONT_MAGIC 0436 39 40 struct dispatch { 41 unsigned short addr; /* &(glyph) - &(start of bitmaps) */ 42 short nbytes; /* # bytes of glyphs (0 if no glyph) */ 43 char up, down, left, right; /* Widths from baseline point */ 44 short width; /* Logical width, used by troff */ 45 }; 46 #define NUM_DISPATCH 256 47 48 #endif /*!_vfont_h*/ 49