Source code of Windows XP (NT5)
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.

90 lines
2.8 KiB

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