Package com.itextpdf.io.font.otf
Class GlyphPositioningTableReader
java.lang.Object
com.itextpdf.io.font.otf.OpenTypeFontTableReader
com.itextpdf.io.font.otf.GlyphPositioningTableReader
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
ConstructorDescriptionGlyphPositioningTableReader
(RandomAccessFileOrArray rf, int gposTableLocation, 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
-
GlyphPositioningTableReader
public GlyphPositioningTableReader(RandomAccessFileOrArray rf, int gposTableLocation, 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
-