83 lines
2.6 KiB
C
83 lines
2.6 KiB
C
#if defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "fvscodes.h" // FVS_xxxxxx (font validation status) codes and macros.
|
|
|
|
#define MAXERRORS -14
|
|
#define NOCOPYRIGHT -13
|
|
#define ARGSTACK -12
|
|
#define TTSTACK -11
|
|
#define NOMETRICS -10
|
|
#define UNSUPPORTEDFORMAT -9
|
|
#define BADMETRICS -8
|
|
#define BADT1HYBRID -7
|
|
#define BADCHARSTRING -6
|
|
#define BADINPUTFILE -5
|
|
#define BADOUTPUTFILE -4
|
|
#define BADT1HEADER -3
|
|
#define NOMEM -2
|
|
#define FAILURE -1
|
|
#define SUCCESS 0
|
|
#define DONE 1
|
|
#define SKIP 2
|
|
|
|
#define MAYBE 2
|
|
|
|
#ifdef _MSC_VER
|
|
#define STDCALL __stdcall
|
|
#else
|
|
#define STDCALL
|
|
#endif
|
|
|
|
#ifndef UNICODE
|
|
# define ConvertTypeface ConvertTypefaceA
|
|
# define IsType1 IsType1A
|
|
#endif
|
|
|
|
short STDCALL ConvertTypefaceA (char *szPfb,
|
|
char *szPfm,
|
|
char *szTtf,
|
|
void (STDCALL *Proc)(short,void*),
|
|
void *arg);
|
|
|
|
BOOL STDCALL CheckType1A (char *pszKeyFile,
|
|
DWORD cjDesc,
|
|
char *pszDesc,
|
|
DWORD cjPFM,
|
|
char *pszPFM,
|
|
DWORD cjPFB,
|
|
char *pszPFB,
|
|
BOOL *pbCreatedPFM,
|
|
char *pszFontPath
|
|
);
|
|
|
|
short STDCALL CheckCopyrightA (char *szPFB,
|
|
DWORD wSize,
|
|
char *szVendor);
|
|
|
|
|
|
//
|
|
// Function CheckType1WithStatusA performs the same operation as
|
|
// CheckType1A except that it returns an encoded status value
|
|
// rather than merely TRUE/FALSE. See fvscodes.h for a description
|
|
// of the "Font Validation Status" encodings.
|
|
// Since the original CheckType1A interface is exported from T1INSTAL.DLL
|
|
// by name, it was left unchanged so that existing applications that
|
|
// might use it don't break.
|
|
//
|
|
short STDCALL CheckType1WithStatusA (char *pszKeyFile,
|
|
DWORD cjDesc,
|
|
char *pszDesc,
|
|
DWORD cjPFM,
|
|
char *pszPFM,
|
|
DWORD cjPFB,
|
|
char *pszPFB,
|
|
BOOL *pbCreatedPFM,
|
|
char *pszFontPath
|
|
);
|
|
|
|
#if defined(__cplusplus)
|
|
}
|
|
#endif
|