home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 25.ddi / root.2 / usr / ucbinclude / vfont.h < prev   
Encoding:
C/C++ Source or Header  |  1990-12-08  |  2.1 KB  |  68 lines

  1. /*    Copyright (c) 1990 UNIX System Laboratories, Inc.    */
  2. /*    Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T    */
  3. /*      All Rights Reserved      */
  4.  
  5. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF         */
  6. /*    UNIX System Laboratories, Inc.                         */
  7. /*    The copyright notice above does not evidence any       */
  8. /*    actual or intended publication of such source code.    */
  9.  
  10.  
  11. #ident    "@(#)//usr/ucbinclude/vfont.h.sl 1.1 4.0 12/08/90 23806 AT&T-USL"
  12.  
  13. /*******************************************************************
  14.  
  15.               PROPRIETARY NOTICE (Combined)
  16.  
  17. This source code is unpublished proprietary information
  18. constituting, or derived under license from AT&T's UNIX(r) System V.
  19. In addition, portions of such source code were derived from Berkeley
  20. 4.3 BSD under license from the Regents of the University of
  21. California.
  22.  
  23.  
  24.  
  25.               Copyright Notice 
  26.  
  27. Notice of copyright on this source code product does not indicate 
  28. publication.
  29.  
  30.       (c) 1986,1987,1988,1989  Sun Microsystems, Inc
  31.       (c) 1983,1984,1985,1986,1987,1988,1989  AT&T.
  32.                 All rights reserved.
  33. ********************************************************************/ 
  34.  
  35.  
  36. /*    @(#)vfont.h 1.7 88/08/19 SMI; from UCB 4.1 83/05/03    */
  37.  
  38. /*
  39.  * The structures header and dispatch define the format of a font file.
  40.  *
  41.  * A font file contains one struct 'header', an array of NUM_DISPATCH struct
  42.  * 'dispatch'es, then an array of bytes containing bit maps.
  43.  *
  44.  * See vfont(5) for more details.
  45.  */
  46.  
  47. #ifndef _vfont_h
  48. #define _vfont_h
  49.  
  50. struct header {
  51.     short        magic;        /* Magic number VFONT_MAGIC */
  52.     unsigned short    size;        /* Total # bytes of bitmaps */
  53.     short        maxx;        /* Maximum horizontal glyph size */
  54.     short        maxy;        /* Maximum vertical   glyph size */
  55.     short        xtend;        /* (unused?) */
  56. }; 
  57. #define    VFONT_MAGIC    0436
  58.  
  59. struct dispatch {
  60.     unsigned short    addr;        /* &(glyph) - &(start of bitmaps) */
  61.     short        nbytes;        /* # bytes of glyphs (0 if no glyph) */
  62.     char        up, down, left, right;    /* Widths from baseline point */
  63.     short        width;        /* Logical width, used by troff */
  64. };
  65. #define    NUM_DISPATCH    256
  66.  
  67. #endif /*!_vfont_h*/
  68.