postprint.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. *
  3. * Default lines per page, tab stops, and point size.
  4. *
  5. */
  6. #define LINESPP 66
  7. #define TABSTOPS 8
  8. #define POINTSIZE 10
  9. /*
  10. *
  11. * An array of type Fontmap helps convert font names requested by users into
  12. * legitimate PostScript names. The array is initialized using FONTMAP, which must
  13. * end with an entry that has NULL defined as its name field. The only fonts that
  14. * are guaranteed to work well are the constant width fonts.
  15. *
  16. */
  17. typedef struct {
  18. char *name; /* user's font name */
  19. char *val; /* corresponding PostScript name */
  20. } Fontmap;
  21. #define FONTMAP \
  22. \
  23. { \
  24. "R", "Courier", \
  25. "I", "Courier-Oblique", \
  26. "B", "Courier-Bold", \
  27. "CO", "Courier", \
  28. "CI", "Courier-Oblique", \
  29. "CB", "Courier-Bold", \
  30. "CW", "Courier", \
  31. "PO", "Courier", \
  32. "courier", "Courier", \
  33. "cour", "Courier", \
  34. "co", "Courier", \
  35. NULL, NULL \
  36. }
  37. /*
  38. *
  39. * Some of the non-integer functions in postprint.c.
  40. *
  41. */
  42. char *get_font();