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.

82 lines
2.6 KiB

  1. #if defined(__cplusplus)
  2. extern "C" {
  3. #endif
  4. #include "fvscodes.h" // FVS_xxxxxx (font validation status) codes and macros.
  5. #define MAXERRORS -14
  6. #define NOCOPYRIGHT -13
  7. #define ARGSTACK -12
  8. #define TTSTACK -11
  9. #define NOMETRICS -10
  10. #define UNSUPPORTEDFORMAT -9
  11. #define BADMETRICS -8
  12. #define BADT1HYBRID -7
  13. #define BADCHARSTRING -6
  14. #define BADINPUTFILE -5
  15. #define BADOUTPUTFILE -4
  16. #define BADT1HEADER -3
  17. #define NOMEM -2
  18. #define FAILURE -1
  19. #define SUCCESS 0
  20. #define DONE 1
  21. #define SKIP 2
  22. #define MAYBE 2
  23. #ifdef _MSC_VER
  24. #define STDCALL __stdcall
  25. #else
  26. #define STDCALL
  27. #endif
  28. #ifndef UNICODE
  29. # define ConvertTypeface ConvertTypefaceA
  30. # define IsType1 IsType1A
  31. #endif
  32. short STDCALL ConvertTypefaceA (char *szPfb,
  33. char *szPfm,
  34. char *szTtf,
  35. void (STDCALL *Proc)(short,void*),
  36. void *arg);
  37. BOOL STDCALL CheckType1A (char *pszKeyFile,
  38. DWORD cjDesc,
  39. char *pszDesc,
  40. DWORD cjPFM,
  41. char *pszPFM,
  42. DWORD cjPFB,
  43. char *pszPFB,
  44. BOOL *pbCreatedPFM,
  45. char *pszFontPath
  46. );
  47. short STDCALL CheckCopyrightA (char *szPFB,
  48. DWORD wSize,
  49. char *szVendor);
  50. //
  51. // Function CheckType1WithStatusA performs the same operation as
  52. // CheckType1A except that it returns an encoded status value
  53. // rather than merely TRUE/FALSE. See fvscodes.h for a description
  54. // of the "Font Validation Status" encodings.
  55. // Since the original CheckType1A interface is exported from T1INSTAL.DLL
  56. // by name, it was left unchanged so that existing applications that
  57. // might use it don't break.
  58. //
  59. short STDCALL CheckType1WithStatusA (char *pszKeyFile,
  60. DWORD cjDesc,
  61. char *pszDesc,
  62. DWORD cjPFM,
  63. char *pszPFM,
  64. DWORD cjPFB,
  65. char *pszPFB,
  66. BOOL *pbCreatedPFM,
  67. char *pszFontPath
  68. );
  69. #if defined(__cplusplus)
  70. }
  71. #endif