ifndef FONTSUB_DOT_H_DEFINED
define FONTSUB_DOT_H_DEFINED
.pragma list(push, 0)

CFP_ALLOCPROC		typedef proto __cdecl :size_t
CFP_REALLOCPROC		typedef proto __cdecl :ptr, :size_t
CFP_FREEPROC		typedef proto __cdecl :ptr

CreateFontPackage proto __cdecl :ptr, :DWORD, :LPSTR, :ptr, :ptr, :WORD, :WORD, :WORD, :WORD, :WORD, :WORD, :ptr, :WORD, :ptr, :ptr, :ptr, :ptr

TTFCFP_SUBSET		equ 0
TTFCFP_SUBSET1		equ 1
TTFCFP_DELTA		equ 2

TTFCFP_UNICODE_PLATFORMID equ 0
TTFCFP_APPLE_PLATFORMID equ 1
TTFCFP_ISO_PLATFORMID	equ 2
TTFCFP_MS_PLATFORMID	equ 3

TTFCFP_STD_MAC_CHAR_SET equ 0
TTFCFP_SYMBOL_CHAR_SET	equ 0
TTFCFP_UNICODE_CHAR_SET equ 1
TTFCFP_DONT_CARE	equ 0xFFFF

TTFCFP_LANG_KEEP_ALL	equ 0

TTFCFP_FLAGS_SUBSET	equ 0x0001
TTFCFP_FLAGS_COMPRESS	equ 0x0002
TTFCFP_FLAGS_TTC	equ 0x0004
TTFCFP_FLAGS_GLYPHLIST	equ 0x0008

MergeFontPackage proto __cdecl :LPSTR, :DWORD, :ptr, :DWORD, :LPSTR, :ptr, :ptr, :WORD, :ptr, :ptr, :ptr, :ptr

TTFMFP_SUBSET		equ 0
TTFMFP_SUBSET1		equ 1
TTFMFP_DELTA		equ 2

ifndef NO_ERROR
NO_ERROR		equ 0
endif

ifndef ERR_GENERIC
ERR_GENERIC		equ 1000
ERR_READOUTOFBOUNDS	equ 1001
ERR_WRITEOUTOFBOUNDS	equ 1002
ERR_READCONTROL		equ 1003
ERR_WRITECONTROL	equ 1004
ERR_MEM			equ 1005
ERR_FORMAT		equ 1006

ERR_WOULD_GROW		equ 1007
ERR_VERSION		equ 1008
ERR_NO_GLYPHS		equ 1009
ERR_INVALID_MERGE_FORMATS equ 1010
ERR_INVALID_MERGE_CHECKSUMS equ 1011
ERR_INVALID_MERGE_NUMGLYPHS equ 1012
ERR_INVALID_DELTA_FORMAT equ 1013
ERR_NOT_TTC		equ 1014
ERR_INVALID_TTC_INDEX	equ 1015

ERR_MISSING_CMAP	equ 1030
ERR_MISSING_GLYF	equ 1031
ERR_MISSING_HEAD	equ 1032
ERR_MISSING_HHEA	equ 1033
ERR_MISSING_HMTX	equ 1034
ERR_MISSING_LOCA	equ 1035
ERR_MISSING_MAXP	equ 1036
ERR_MISSING_NAME	equ 1037
ERR_MISSING_POST	equ 1038
ERR_MISSING_OS2		equ 1039
ERR_MISSING_VHEA	equ 1040
ERR_MISSING_VMTX	equ 1041
ERR_MISSING_HHEA_OR_VHEA equ 1042
ERR_MISSING_HMTX_OR_VMTX equ 1043
ERR_MISSING_EBDT	equ 1044

ERR_INVALID_CMAP	equ 1060
ERR_INVALID_GLYF	equ 1061
ERR_INVALID_HEAD	equ 1062
ERR_INVALID_HHEA	equ 1063
ERR_INVALID_HMTX	equ 1064
ERR_INVALID_LOCA	equ 1065
ERR_INVALID_MAXP	equ 1066
ERR_INVALID_NAME	equ 1067
ERR_INVALID_POST	equ 1068
ERR_INVALID_OS2		equ 1069
ERR_INVALID_VHEA	equ 1070
ERR_INVALID_VMTX	equ 1071
ERR_INVALID_HHEA_OR_VHEA equ 1072
ERR_INVALID_HMTX_OR_VMTX equ 1073

ERR_INVALID_TTO		equ 1080
ERR_INVALID_GSUB	equ 1081
ERR_INVALID_GPOS	equ 1082
ERR_INVALID_GDEF	equ 1083
ERR_INVALID_JSTF	equ 1084
ERR_INVALID_BASE	equ 1085
ERR_INVALID_EBLC	equ 1086
ERR_INVALID_LTSH	equ 1087
ERR_INVALID_VDMX	equ 1088
ERR_INVALID_HDMX	equ 1089

ERR_PARAMETER0		equ 1100
ERR_PARAMETER1		equ 1101
ERR_PARAMETER2		equ 1102
ERR_PARAMETER3		equ 1103
ERR_PARAMETER4		equ 1104
ERR_PARAMETER5		equ 1105
ERR_PARAMETER6		equ 1106
ERR_PARAMETER7		equ 1107
ERR_PARAMETER8		equ 1108
ERR_PARAMETER9		equ 1109
ERR_PARAMETER10		equ 1110
ERR_PARAMETER11		equ 1111
ERR_PARAMETER12		equ 1112
ERR_PARAMETER13		equ 1113
ERR_PARAMETER14		equ 1114
ERR_PARAMETER15		equ 1115
ERR_PARAMETER16		equ 1116

endif ;; ERR_GENERIC

.pragma list(pop)
endif

