Package com.itextpdf.io.font.otf
Class GlyphSubstitutionTableReader
- java.lang.Object
-
- com.itextpdf.io.font.otf.OpenTypeFontTableReader
-
- com.itextpdf.io.font.otf.GlyphSubstitutionTableReader
-
public class GlyphSubstitutionTableReader extends OpenTypeFontTableReader
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.
-
-
Field Summary
-
Fields inherited from class com.itextpdf.io.font.otf.OpenTypeFontTableReader
featuresType, lookupList, rf, scriptsType, tableLocation
-
-
Constructor Summary
Constructors Constructor Description GlyphSubstitutionTableReader(RandomAccessFileOrArray rf, int gsubTableLocation, OpenTypeGdefTableReader gdef, java.util.Map<java.lang.Integer,Glyph> indexGlyphMap, int unitsPerEm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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, startReadingTable
-
-
-
-
Constructor Detail
-
GlyphSubstitutionTableReader
public GlyphSubstitutionTableReader(RandomAccessFileOrArray rf, int gsubTableLocation, OpenTypeGdefTableReader gdef, java.util.Map<java.lang.Integer,Glyph> indexGlyphMap, int unitsPerEm) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
readLookupTable
protected OpenTableLookup readLookupTable(int lookupType, int lookupFlag, int[] subTableLocations) throws java.io.IOException
- Specified by:
readLookupTable
in classOpenTypeFontTableReader
- Throws:
java.io.IOException
-
-