Debian Codegraph @

texk/ttfdump/include/loadtable.h

raw
1 #ifndef __TTF_LOADTABLE_H
2 #define __TTF_LOADTABLE_H
3
4 #include "tables.h"
5
6 /* $Id: loadtable.h,v 1.2 1998/07/06 06:07:01 werner Exp $ */
7
8 void ttfLoadRequiredTables(TTFontPtr font);
9 void ttfFreeRequiredTables(TTFontPtr font);
10 void ttfLoadOptionalTables(TTFontPtr font);
11 void ttfFreeOptionalTables(TTFontPtr font);
12 void ttfLoadOpenTypeTables(TTFontPtr font);
13 void ttfFreeOpenTypeTables(TTFontPtr font);
14
15 void ttfInitTableDir(TTFontPtr font, ULONG offset);
16 void ttfPrintTableDir(FILE *fp, TableDirPtr p);
17 void ttfFreeTableDir(TableDirPtr p);
18 TableDirPtr ttfLookUpTableDir(ULONG tag, TTFontPtr font);
19
20 void ttfInitCMAP(TTFontPtr font);
21 void ttfPrintCMAP(FILE *fp, CMAPPtr cmap);
22 USHORT ttfLookUpCMAP(MapPtr map, USHORT cc);
23 void ttfFreeCMAP(CMAPPtr cmap);
24
25 void ttfInitGLYF(TTFontPtr font);
26 void ttfLoadGLYF(FILE *fp, GLYFPtr glyf, ULONG offset);
27 void ttfPrintGLYF(FILE *fp, GLYFPtr glyf);
28 void ttfFreeGLYF(GLYFPtr glyf);
29 GLYFPtr ttfLoadGlyphIndex(TTFont * font, USHORT idx);
30 GLYFPtr ttfLoadGlyphCode(TTFont * fnt, USHORT cc);
31
32 void ttfInitGlyphCache(TTFontPtr font);
33 void ttfCleanUpGlyphCache(TTFontPtr font);
34 GLYFPtr ttfLoadGlyphCached(TTFontPtr font, ULONG offset);
35
36 void ttfInitHEAD(TTFontPtr font);
37 void ttfPrintHEAD(FILE *, HEADPtr head);
38 void ttfFreeHEAD(HEADPtr head);
39
40 void ttfInitHHEA(TTFontPtr font);
41 void ttfPrintHHEA(FILE *fp, HHEAPtr hhea);
42 void ttfFreeHHEA(HHEAPtr hhea);
43
44 void ttfInitHMTX(TTFontPtr font);
45 void ttfPrintHMTX(FILE *fp, HMTXPtr hmtx);
46 void ttfFreeHMTX(HMTXPtr hmtx);
47
48 void ttfInitLOCA(TTFontPtr font);
49 void ttfPrintLOCA(FILE *fp, LOCAPtr loca);
50 void ttfFreeLOCA(LOCAPtr loca);
51 ULONG ttfLookUpGlyfLOCA(LOCAPtr loca, USHORT idx);
52
53 void ttfInitMAXP(TTFontPtr font);
54 void ttfPrintMAXP(FILE *fp, MAXPPtr maxp);
55 void ttfFreeMAXP(MAXPPtr maxp);
56
57 void ttfInitNAME(TTFontPtr font);
58 void ttfPrintNAME(FILE *fp, NAMEPtr name);
59 void ttfFreeNAME(NAMEPtr name);
60
61 void ttfInitPOST(TTFontPtr fot);
62 void ttfPrintPOST(FILE *fp, POSTPtr post);
63 void ttfFreePOST(POSTPtr post);
64
65 void ttfInitOS2(TTFontPtr font);
66 void ttfPrintOS2(FILE *fp, OS_2Ptr os2);
67 void ttfFreeOS2(OS_2Ptr os2);
68
69 void ttfInitCVT(TTFontPtr font);
70 void ttfPrintCVT(FILE *fp, FWord * cvt, USHORT cvtLength);
71 void ttfFreeCVT(FWord * cvt);
72
73 void ttfInitFPGM(TTFontPtr font);
74 void ttfPrintFPGM(FILE *fp, BYTE * fpgm, USHORT length);
75 void ttfFreeFPGM(BYTE * fpgm);
76
77 void ttfInitGASP(TTFontPtr font);
78 void ttfPrintGASP(FILE *fp, GASPPtr gasp);
79 void ttfFreeGASP(GASPPtr gasp);
80
81 void ttfInitHDMX(TTFontPtr font);
82 void ttfPrintHDMX(FILE *fp, HDMXPtr hdmx);
83 void ttfFreeHDMX(HDMXPtr hdmx);
84
85 void ttfInitPREP(TTFontPtr font);
86 void ttfPrintPREP(FILE *fp, BYTE * prep, USHORT length);
87 void ttfFreePREP(BYTE * prep);
88
89 void ttfInitLTSH(TTFontPtr font);
90 void ttfPrintLTSH(FILE *fp, LTSHPtr ltsh);
91 void ttfFreeLTSH(LTSHPtr ltsh);
92
93 void ttfInitVDMX(TTFontPtr font);
94 void ttfPrintVDMX(FILE *fp, VDMXPtr vdmx);
95 void ttfFreeVDMX(VDMXPtr vdmx);
96
97 ScriptListPtr otfMakeScriptList(FILE *fp, ULONG offset);
98 void otfPrintScriptList(FILE *fp, ScriptListPtr scriptList);
99 void otfFreeScriptList(ScriptListPtr scriptList);
100
101 FeatureListPtr otfMakeFeatureList(FILE *fp, ULONG offset);
102 void otfPrintFeatureList(FILE *fp, FeatureListPtr featureList);
103 void otfFreeFeatureList(FeatureListPtr featureList);
104
105 LookupListPtr otfMakeLookupList(FILE *fp, ULONG offset, MakeLookupFunc makeLookup);
106 void otfPrintLookupList(FILE *fp, LookupListPtr lookupList, PrintLookupFunc printLookup);
107 void otfFreeLookupList(LookupListPtr lookupList, FreeLookupFunc freeLookup);
108
109 CoveragePtr otfMakeCoverage(FILE *fp, ULONG offset);
110 void otfPrintCoverage(FILE *fp, CoveragePtr coverage);
111 void otfFreeCoverage(CoveragePtr coverage);
112
113 ClassDefPtr otfMakeClassDef(FILE *fp, ULONG offset);
114 void otfPrintClassDef(FILE *fp, ClassDefPtr classDef);
115 void otfFreeClassDef(ClassDefPtr classDef);
116
117 DevicePtr otfMakeDevice(FILE *fp, ULONG offset);
118 void otfPrintDevice(FILE *fp, DevicePtr device);
119
120 void ttfInitGPOS(TTFontPtr font);
121 void ttfPrintGPOS(FILE *fp, GPOSPtr gpos);
122 void ttfFreeGPOS(GPOSPtr gpos);
123
124 void ttfInitGSUB(TTFontPtr font);
125 void ttfPrintGSUB(FILE *fp, GSUBPtr gsub);
126 void ttfFreeGSUB(GSUBPtr gsub);
127
128 void ttfInitGraphicsState(TTFontPtr font);
129 void ttfInitStack(TTFontPtr font);
130 void ttfInitStorageArea(TTFontPtr font);
131
132 void ttfPrintInstructions(FILE *fp, BYTE * ins);
133
134 #endif /* __TTF_LOADTABLE_H */
135
136
137 /* end of loadtable.h */