Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.7 KiB

  1. /***
  2. **
  3. ** Module: TItoTT
  4. **
  5. ** Description:
  6. ** This is the internal interface for the Adobe Type 1 to
  7. ** TrueType font converter.
  8. **
  9. ** Author: Michael Jansson
  10. ** Created: 5/26/93
  11. **
  12. ***/
  13. #ifndef _ARGS
  14. # define IN const
  15. # define OUT
  16. # define INOUT
  17. # define _ARGS(arg) arg
  18. #endif
  19. #define MAXERRORS -14
  20. #define NOCOPYRIGHT -13
  21. #define ARGSTACK -12
  22. #define TTSTACK -11
  23. #define NOMETRICS -10
  24. #define UNSUPPORTEDFORMAT -9
  25. #define BADMETRICS -8
  26. #define BADT1HYBRID -7
  27. #define BADCHARSTRING -6
  28. #define BADINPUTFILE -5
  29. #define BADOUTPUTFILE -4
  30. #define BADT1HEADER -3
  31. #define NOMEM -2
  32. #define FAILURE -1
  33. #define SUCCESS 0
  34. #define DONE 1
  35. #define SKIP 2
  36. struct GlyphFilter {
  37. const unsigned short num;
  38. const char **name;
  39. };
  40. struct T1Arg {
  41. const char *name;
  42. const char *metrics;
  43. const struct GlyphFilter *filter;
  44. int upem;
  45. };
  46. struct TTArg {
  47. char *name;
  48. char *tag;
  49. short precision;
  50. };
  51. struct callProgress {
  52. const void (*cb)(short, void *, void *);
  53. void *arg;
  54. };
  55. /***
  56. ** Function: ConvertT1toTT
  57. **
  58. ** Description:
  59. ** Convert a T1 font into a TT font file.
  60. ***/
  61. short ConvertT1toTT _ARGS((IN struct TTArg *ttArg,
  62. IN struct T1Arg *t1Arg,
  63. IN short (*check)(IN char *facename,
  64. IN char *copyright,
  65. IN char *notice),
  66. INOUT struct callProgress *cp));