home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / pcmag / vol12n07.zip / FNTPRN.ZIP / FNTSRC.ZIP / ENUMFONT.H < prev    next >
C/C++ Source or Header  |  1993-04-13  |  1KB  |  48 lines

  1. /*
  2. **    Defines
  3. */
  4. #define JUST_LEFT           0
  5. #define JUST_CENTER         1
  6. #define JUST_RIGHT          2
  7. #define JUST_JUST           3
  8. #define BOLD_BIT            1
  9. #define ITALIC_BIT          2
  10.  
  11. /*
  12. **    Structures and Typedefs
  13. */
  14. typedef enum tagSORTORDER{ALPHA,HEIGHT,WIDTH,NARROWNESS,
  15.     WEIGHT,FONTTYPE}SORTORDER;
  16. typedef enum tagMONOSPACE{VAR,MONO,VARMONO}MONOSPACE;
  17.  
  18. /*
  19. **    Global Variables
  20. */
  21. extern HANDLE instance;
  22. extern HWND hwndSortorder;
  23. extern HWND hwndDialog;
  24. /* following are user choices to drive file generation */
  25. extern SORTORDER sortorder;
  26. extern MONOSPACE monospace;
  27. extern int use_printer_context,allow_synthesis,truetype_only;
  28. extern int incl_novelty,incl_modern,incl_roman,
  29.        incl_script,incl_sanserif,incl_other;
  30. extern int incl_regular,incl_bold,incl_italic,incl_bolditalic;
  31. extern int launchwrite;
  32. // following set by dialog proc, used by generate_file_from_options()
  33. extern LPSTR sample_text_ptr;
  34. extern int sample_text_length;
  35. extern int sample_text_pointsize;       // in half-points (24==12pt)
  36. extern int sample_text_just;            // JUST_LEFT ... JUST_JUST
  37. extern LPSTR default_font;
  38. extern BYTE default_ffid;
  39. extern int default_pointsize;           // in half-points (24==12 pt)
  40. extern int default_just;                // JUST_LEFT ... JUST_JUST
  41. extern int default_bolditalic;          // BOLD_BIT | ITALIC_BIT
  42.  
  43.  
  44. /*
  45. **    Function Prototypes
  46. */
  47. extern void generate_file_from_options(void);
  48.