Package com.itextpdf.io.font.otf
Class GlyphSubstitutionTableReader
java.lang.Object
com.itextpdf.io.font.otf.OpenTypeFontTableReader
com.itextpdf.io.font.otf.GlyphSubstitutionTableReader
Parses an OpenTypeFont file and reads the Glyph Substitution Table. This table governs how two or more Glyphs should be merged to a single Glyph. This is especially useful for Asian languages like Bangla, Hindi, etc.
This has been written according to the OPenTypeFont specifications. This may be found here.
- Author:
- Palash Ray
-
Field Summary
Fields inherited from class com.itextpdf.io.font.otf.OpenTypeFontTableReader
featuresType, lookupList, rf, scriptsType, tableLocation
-
Constructor Summary
ConstructorDescriptionGlyphSubstitutionTableReader
(RandomAccessFileOrArray rf, int gsubTableLocation, OpenTypeGdefTableReader gdef, Map<Integer, Glyph> indexGlyphMap, int unitsPerEm) -
Method Summary
Modifier and TypeMethodDescriptionprotected OpenTableLookup
readLookupTable
(int lookupType, int lookupFlag, int[] subTableLocations) Methods inherited from class com.itextpdf.io.font.otf.OpenTypeFontTableReader
getFeatureRecords, getFeatures, getGlyph, getGlyphClass, getLanguageRecord, getLanguageRecord, getLookups, getLookups, getLookupTable, getRequiredFeature, getScriptRecords, getSpecificFeatures, getUnitsPerEm, isSkip, readClassDefinition, readCoverageFormat, readCoverages, readPosLookupRecords, readSubstLookupRecords, readTagAndLocations, readUShortArray, readUShortArray
-
Constructor Details
-
GlyphSubstitutionTableReader
public GlyphSubstitutionTableReader(RandomAccessFileOrArray rf, int gsubTableLocation, OpenTypeGdefTableReader gdef, Map<Integer, Glyph> indexGlyphMap, int unitsPerEm) throws IOException- Throws:
-
IOException
-
-
Method Details
-
readLookupTable
protected OpenTableLookup readLookupTable(int lookupType, int lookupFlag, int[] subTableLocations) throws IOException - Specified by:
-
readLookupTable
in classOpenTypeFontTableReader
- Throws:
-
IOException
-