iText 7 7.1.8 API
iText.IO.Font.Otf.GlyphSubstitutionTableReader Class Reference

Parses an OpenTypeFont file and reads the Glyph Substitution Table. More...

Inheritance diagram for iText.IO.Font.Otf.GlyphSubstitutionTableReader:
iText.IO.Font.Otf.OpenTypeFontTableReader

Public Member Functions

  GlyphSubstitutionTableReader (RandomAccessFileOrArray rf, int gsubTableLocation, OpenTypeGdefTableReader gdef, IDictionary< int, Glyph > indexGlyphMap, int unitsPerEm)
 
Exceptions
System.IO.IOException

 
- Public Member Functions inherited from iText.IO.Font.Otf.OpenTypeFontTableReader
virtual Glyph  GetGlyph (int index)
 
virtual OpenTableLookup  GetLookupTable (int idx)
 
virtual IList< ScriptRecord GetScriptRecords ()
 
virtual IList< FeatureRecord GetFeatureRecords ()
 
virtual IList< FeatureRecord GetFeatures (String[] scripts, String language)
 
virtual IList< FeatureRecord GetSpecificFeatures (IList< FeatureRecord > features, String[] specific)
 
virtual FeatureRecord  GetRequiredFeature (String[] scripts, String language)
 
virtual IList< OpenTableLookup GetLookups (FeatureRecord[] features)
 
virtual IList< OpenTableLookup GetLookups (FeatureRecord feature)
 
virtual bool  IsSkip (int glyph, int flag)
 
virtual int  GetGlyphClass (int glyphCode)
 
virtual int  GetUnitsPerEm ()
 
virtual LanguageRecord  GetLanguageRecord (String otfScriptTag)
 

Detailed Description

Parses an OpenTypeFont file and reads the Glyph Substitution Table.

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.

Palash Ray