From 3131715fb5bce44da6c7584315237731aa752eba Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Thu, 1 Dec 2011 13:24:38 +0000 Subject: ttfdump: Added functionality - do not segfault for fonts without loca table - allow cmap subtables with format 8, 10, 12, and 13 - handle GPOS and GSUB tables - additional tests git-svn-id: svn://tug.org/texlive/trunk@24713 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/ttfdump/include/loadtable.h | 36 +++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) (limited to 'Build/source/texk/ttfdump/include/loadtable.h') diff --git a/Build/source/texk/ttfdump/include/loadtable.h b/Build/source/texk/ttfdump/include/loadtable.h index 9bf74f0b5ab..f44c12dc69c 100644 --- a/Build/source/texk/ttfdump/include/loadtable.h +++ b/Build/source/texk/ttfdump/include/loadtable.h @@ -9,6 +9,8 @@ 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); @@ -17,8 +19,7 @@ TableDirPtr ttfLookUpTableDir(ULONG tag, TTFontPtr font); void ttfInitCMAP(TTFontPtr font); void ttfPrintCMAP(FILE *fp, CMAPPtr cmap); -USHORT ttfLookUpCMAP(SubTablePtr subTable, USHORT cc); -SubTablePtr ttfSelectCMAP(CMAPPtr cmap, USHORT PlatformID, USHORT EncodingID); +USHORT ttfLookUpCMAP(MapPtr map, USHORT cc); void ttfFreeCMAP(CMAPPtr cmap); void ttfInitGLYF(TTFontPtr font); @@ -93,6 +94,37 @@ 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); -- cgit v1.2.3