summaryrefslogtreecommitdiff
path: root/Build/source/texk/ttfdump/include/loadtable.h
blob: f44c12dc69cde119f36764d190d16efcdddcc302 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#ifndef __TTF_LOADTABLE_H
#define __TTF_LOADTABLE_H

#include "tables.h"

/* $Id: loadtable.h,v 1.2 1998/07/06 06:07:01 werner Exp $ */

void ttfLoadRequiredTables(TTFontPtr font);
void ttfFreeRequiredTables(TTFontPtr font);
void ttfLoadOptionalTables(TTFontPtr font);
void ttfFreeOptionalTables(TTFontPtr font);
void ttfLoadOpenTypeTables(TTFontPtr font);
void ttfFreeOpenTypeTables(TTFontPtr font);

void ttfInitTableDir(TTFontPtr font, ULONG offset);
void ttfPrintTableDir(FILE *fp, TableDirPtr p);
void ttfFreeTableDir(TableDirPtr p);
TableDirPtr ttfLookUpTableDir(ULONG tag, TTFontPtr font);

void ttfInitCMAP(TTFontPtr font);
void ttfPrintCMAP(FILE *fp, CMAPPtr cmap);
USHORT ttfLookUpCMAP(MapPtr map, USHORT cc);
void ttfFreeCMAP(CMAPPtr cmap);

void ttfInitGLYF(TTFontPtr font);
void ttfLoadGLYF(FILE *fp, GLYFPtr glyf, ULONG offset);
void ttfPrintGLYF(FILE *fp, GLYFPtr glyf);
void ttfFreeGLYF(GLYFPtr glyf);
GLYFPtr ttfLoadGlyphIndex(TTFont * font, USHORT idx);
GLYFPtr ttfLoadGlyphCode(TTFont * fnt, USHORT cc);

void ttfInitGlyphCache(TTFontPtr font);
void ttfCleanUpGlyphCache(TTFontPtr font);
GLYFPtr ttfLoadGlyphCached(TTFontPtr font, ULONG offset);

void ttfInitHEAD(TTFontPtr font);
void ttfPrintHEAD(FILE *, HEADPtr head);
void ttfFreeHEAD(HEADPtr head);

void ttfInitHHEA(TTFontPtr font);
void ttfPrintHHEA(FILE *fp, HHEAPtr hhea);
void ttfFreeHHEA(HHEAPtr hhea);

void ttfInitHMTX(TTFontPtr font);
void ttfPrintHMTX(FILE *fp, HMTXPtr hmtx);
void ttfFreeHMTX(HMTXPtr hmtx);

void ttfInitLOCA(TTFontPtr font);
void ttfPrintLOCA(FILE *fp, LOCAPtr loca);
void ttfFreeLOCA(LOCAPtr loca);
ULONG ttfLookUpGlyfLOCA(LOCAPtr loca, USHORT idx);

void ttfInitMAXP(TTFontPtr font);
void ttfPrintMAXP(FILE *fp, MAXPPtr maxp);
void ttfFreeMAXP(MAXPPtr maxp);

void ttfInitNAME(TTFontPtr font);
void ttfPrintNAME(FILE *fp, NAMEPtr name);
void ttfFreeNAME(NAMEPtr name);

void ttfInitPOST(TTFontPtr fot);
void ttfPrintPOST(FILE *fp, POSTPtr post);
void ttfFreePOST(POSTPtr post);

void ttfInitOS2(TTFontPtr font);
void ttfPrintOS2(FILE *fp, OS_2Ptr os2);
void ttfFreeOS2(OS_2Ptr os2);

void ttfInitCVT(TTFontPtr font);
void ttfPrintCVT(FILE *fp, FWord * cvt, USHORT cvtLength);
void ttfFreeCVT(FWord * cvt);

void ttfInitFPGM(TTFontPtr font);
void ttfPrintFPGM(FILE *fp, BYTE * fpgm, USHORT length);
void ttfFreeFPGM(BYTE * fpgm);

void ttfInitGASP(TTFontPtr font);
void ttfPrintGASP(FILE *fp, GASPPtr gasp);
void ttfFreeGASP(GASPPtr gasp);

void ttfInitHDMX(TTFontPtr font);
void ttfPrintHDMX(FILE *fp, HDMXPtr hdmx);
void ttfFreeHDMX(HDMXPtr hdmx);

void ttfInitPREP(TTFontPtr font);
void ttfPrintPREP(FILE *fp, BYTE * prep, USHORT length);
void ttfFreePREP(BYTE * prep);

void ttfInitLTSH(TTFontPtr font);
void ttfPrintLTSH(FILE *fp, LTSHPtr ltsh);
void ttfFreeLTSH(LTSHPtr ltsh);

void ttfInitVDMX(TTFontPtr font);
void ttfPrintVDMX(FILE *fp, VDMXPtr vdmx);
void ttfFreeVDMX(VDMXPtr vdmx);

ScriptListPtr otfMakeScriptList(FILE *fp, ULONG offset);
void otfPrintScriptList(FILE *fp, ScriptListPtr scriptList);
void otfFreeScriptList(ScriptListPtr scriptList);

FeatureListPtr otfMakeFeatureList(FILE *fp, ULONG offset);
void otfPrintFeatureList(FILE *fp, FeatureListPtr featureList);
void otfFreeFeatureList(FeatureListPtr featureList);

LookupListPtr otfMakeLookupList(FILE *fp, ULONG offset, MakeLookupFunc makeLookup);
void otfPrintLookupList(FILE *fp, LookupListPtr lookupList, PrintLookupFunc printLookup);
void otfFreeLookupList(LookupListPtr lookupList, FreeLookupFunc freeLookup);

CoveragePtr otfMakeCoverage(FILE *fp, ULONG offset);
void otfPrintCoverage(FILE *fp, CoveragePtr coverage);
void otfFreeCoverage(CoveragePtr coverage);

ClassDefPtr otfMakeClassDef(FILE *fp, ULONG offset);
void otfPrintClassDef(FILE *fp, ClassDefPtr classDef);
void otfFreeClassDef(ClassDefPtr classDef);

DevicePtr otfMakeDevice(FILE *fp, ULONG offset);
void otfPrintDevice(FILE *fp, DevicePtr device);

void ttfInitGPOS(TTFontPtr font);
void ttfPrintGPOS(FILE *fp, GPOSPtr gpos);
void ttfFreeGPOS(GPOSPtr gpos);

void ttfInitGSUB(TTFontPtr font);
void ttfPrintGSUB(FILE *fp, GSUBPtr gsub);
void ttfFreeGSUB(GSUBPtr gsub);

void ttfInitGraphicsState(TTFontPtr font);
void ttfInitStack(TTFontPtr font);
void ttfInitStorageArea(TTFontPtr font);

void ttfPrintInstructions(FILE *fp, BYTE * ins);

#endif /* __TTF_LOADTABLE_H */


/* end of loadtable.h */