home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 11 / 11.iso / m / m242 / 1.ddi / HFILES.ZIP / VFONT.H < prev   
Encoding:
C/C++ Source or Header  |  1989-07-27  |  1.3 KB  |  38 lines

  1. /*           vfont.h            */
  2.  
  3. /* Needed parameters of vector fonts */
  4.  
  5. #define HEADSIZE 10 /* size of header record for vector font */
  6. #define PART2SIZE 9 /* size of a part2 record */
  7. #define PART3SIZE 3 /* size of a part3 record (triple) */
  8.  
  9. struct vfont
  10.   {
  11.   int recs;        /* number of characters in font        */
  12.   unsigned p2size; /* size of part2 section of font       */
  13.   unsigned p3size; /* size of part3 section of font       */
  14.   int maxwidth;    /* maximum width of 1 character        */
  15.   int maxhigh;     /* maximum height of 1 character       */
  16.   char *part2;     /* part2 section of font               */
  17.   char *part3;     /* part3 section of font               */
  18.   float scale;     /* current scaling factor for font     */
  19.   };
  20.  
  21. struct _vfpart2
  22.   {
  23.   unsigned part3pos;  /* position in part 3 of file              */
  24.   int triples;        /* number of triples for this character    */
  25.   char width;         /* width of the character cell             */
  26.   char high;          /* height of the character cell            */
  27.   char baseline;      /* # of pixels used below baseline         */
  28.   char blanks;        /* # of blank pixels to right of character */
  29.   };
  30.  
  31. struct _vfpart3
  32.   {
  33.   int col;       /* column movement */
  34.   int row;       /* row movement */
  35.   };
  36.  
  37.  
  38.