Table of Contents

Class GlyphSubstitutionTableReader

Namespace
iText.IO.Font.Otf
Assembly
itext.io.dll

Parses an OpenTypeFont file and reads the Glyph Substitution Table.

public class GlyphSubstitutionTableReader : OpenTypeFontTableReader
Inheritance
GlyphSubstitutionTableReader
Inherited Members

Remarks

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.

Constructors

GlyphSubstitutionTableReader(RandomAccessFileOrArray, int, OpenTypeGdefTableReader, IDictionary<int, Glyph>, int)

public GlyphSubstitutionTableReader(RandomAccessFileOrArray rf, int gsubTableLocation, OpenTypeGdefTableReader gdef, IDictionary<int, Glyph> indexGlyphMap, int unitsPerEm)

Parameters

rf RandomAccessFileOrArray
gsubTableLocation int
gdef OpenTypeGdefTableReader
indexGlyphMap IDictionary<int, Glyph>
unitsPerEm int

Methods

ReadLookupTable(int, int, int[])

protected override OpenTableLookup ReadLookupTable(int lookupType, int lookupFlag, int[] subTableLocations)

Parameters

lookupType int
lookupFlag int
subTableLocations int[]

Returns

OpenTableLookup