home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / unix / unix_mw2.sha / fonts.h < prev    next >
Encoding:
C/C++ Source or Header  |  1985-04-26  |  903 b   |  54 lines

  1. #define    MAX_FONTS    64
  2.  
  3.  
  4. /*    macintosh predefined font numbers */
  5. #define    F_SYSTEM (0)
  6. #define    F_APPL    (1)
  7. #define    F_NEWYORK (2)
  8. #define    F_GENEVA (3)
  9. #define    F_MONACO (4)
  10. #define    F_VENICE (5)
  11. #define    F_LONDON (6)
  12. #define    F_ATHENS (7)
  13. #define    F_SANFRAN (8)
  14. #define    F_TORONTO (9)
  15.  
  16.  
  17. typedef    struct
  18.     {
  19.     byte    ch_windex;
  20.     byte    ch_hindex;
  21.     byte    ch_itindex;
  22.     byte    ch_remainder;
  23.     } CH_INFO;
  24.     
  25. typedef    struct
  26.     {
  27.     int    f_number;        /* mac font number */
  28.     byte    f_size;
  29.     byte    f_style;        /* bold, italic, etc. */
  30.     bool    f_active;        /* does the driver know about me? */
  31.     char    * f_name;        /* font name (cmr, etc.) */
  32.     long    f_csum;    
  33.     CH_INFO    * f_info;        /* tfm info */
  34.     SP    * f_width;
  35.     SP    * f_height;
  36.     SP    f_maxheight;
  37.     SP    * f_depth;
  38.     SP    f_dsize;
  39.     SP    f_at_size;
  40.     SP    f_slant;
  41.     SP    f_stretch;
  42.     SP    f_shrink;
  43.     SP    f_accent;
  44.     SP    f_ss;
  45.     SP    f_ws;
  46.     } FONT;
  47.  
  48. FONT    fonts[MAX_FONTS];
  49.  
  50. SP    ch_wid();
  51. SP    font_ws();
  52. SP    font_depth();
  53. SP    font_height();
  54.