home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume3 / laserjet / part1 / glyph.h < prev    next >
Encoding:
C/C++ Source or Header  |  1986-11-30  |  1.4 KB  |  70 lines

  1. /*
  2.  * $Header: glyph.h,v 1.1 85/08/15 15:07:31 ron Exp $
  3.  */
  4.  
  5. /*
  6.  * $Log:    glyph.h,v $
  7.  * Revision 1.1  85/08/15  15:07:31  ron
  8.  * Initial revision
  9.  * 
  10.  * 
  11.  */
  12.  
  13. struct f_header
  14.   {
  15.     short        f_magic ;
  16.         /*
  17.          * Should be 0436 - for vfont. rasti10 uses
  18.          * just 0 (i think)
  19.          */
  20.     unsigned short    f_size ;
  21.         /*
  22.          * Total size of raster section
  23.          * of the font file.
  24.          */
  25.         /*
  26.          * the following are used for vfont, but seem to
  27.          * be consistently 0 for rasti10. this gives us
  28.          * a way to distinguish between them.
  29.          */
  30.     short        f_maxx ;    /* Largest x of character */
  31.     short        f_maxy ;    /* Largest y of character */
  32.     short        f_xtnd ;    /* Largest extender */
  33.   } ;
  34.  
  35. struct c_param
  36.   {
  37.     unsigned short    c_addr ;
  38.         /*
  39.          * Offset in file where character
  40.          * is located. doesn't include the
  41.          * size of the c_param and f_header
  42.          * structures - see F_OFFSET below
  43.          */
  44.     short        c_size ;    /* Size in bytes of character    */
  45.     char        c_up ;
  46.     char        c_down ;
  47.         /*
  48.          * c_up + c_down = heigth of raster in
  49.          * font file, in rows, for vfont. rasti10 wants
  50.          * c_up + c_down + 1.
  51.          */
  52.     char        c_left ;
  53.     char        c_right ;
  54.         /*
  55.          * c_right + c_left = width of raster in
  56.          * font file, in bits (dots), for vfont. rasti10 wants
  57.          * c_right + c_left + 1.
  58.          */
  59.     char        c_width ;
  60.         /*
  61.          * Width, including space required
  62.          * to print character.
  63.          * rasti10 may not use this. be careful.
  64.          */
  65.   } ;
  66.  
  67.  
  68. #define    F_OFFSET    ((long)(sizeof(struct f_header)+ \
  69.                 256*sizeof(struct c_param)))
  70.