|
iText 9.8.0 API
|
Parses an OpenTypeFont file and reads the Glyph Substitution Table. More...
Public Member Functions |
|
| GlyphSubstitutionTableReader (RandomAccessFileOrArray rf, int gsubTableLocation, OpenTypeGdefTableReader gdef, IDictionary< int, Glyph > indexGlyphMap, int unitsPerEm) | |
| Instantiates a new instance of GlyphSubstitutionTableReader. More... |
|
Public Member Functions inherited from iText.IO.Font.Otf.OpenTypeFontTableReader |
|
| virtual Glyph | GetGlyph (int index) |
| Returns the glyph by index. More... |
|
| virtual OpenTableLookup | GetLookupTable (int idx) |
| Returns the lookup table. More... |
|
| virtual IList< ScriptRecord > | GetScriptRecords () |
| Returns the script records. More... |
|
| virtual IList< FeatureRecord > | GetFeatureRecords () |
| Returns the feature records. More... |
|
| virtual IList< FeatureRecord > | GetFeatures (String[] scripts, String language) |
| Returns the features represented by FeatureRecord list. More... |
|
| virtual IList< FeatureRecord > | GetSpecificFeatures (IList< FeatureRecord > features, String[] specific) |
| Returns the specific features represented by FeatureRecord list. More... |
|
| virtual FeatureRecord | GetRequiredFeature (String[] scripts, String language) |
| Returns the required feature represented by FeatureRecord. More... |
|
| virtual IList< OpenTableLookup > | GetLookups (FeatureRecord[] features) |
| Returns the lookups. More... |
|
| virtual IList< OpenTableLookup > | GetLookups (FeatureRecord feature) |
| Returns the lookups. More... |
|
| virtual bool | IsSkip (int glyph, int lookupFlag) |
| Checks if lookup must ignore the specified glyph when processing glyph sequences. More... |
|
| virtual int | GetGlyphClass (int glyphCode) |
| Returns the glyph class. More... |
|
| virtual int | GetUnitsPerEm () |
| Returns the units per em. More... |
|
| virtual LanguageRecord | GetLanguageRecord (String otfScriptTag) |
| Returns the language record. More... |
|
| virtual LanguageRecord | GetLanguageRecord (String otfScriptTag, String langTag) |
| Returns the language record. More... |
|
Package Functions |
|
| override OpenTableLookup | ReadLookupTable (int lookupType, int lookupFlag, int[] subTableLocations) |
| Reads the lookup table from OpenType data. More... |
|
Package Functions inherited from iText.IO.Font.Otf.OpenTypeFontTableReader |
|
| OpenTypeFontTableReader (RandomAccessFileOrArray rf, int tableLocation, OpenTypeGdefTableReader gdef, IDictionary< int, Glyph > indexGlyphMap, int unitsPerEm) | |
| Creates a new reader. More... |
|
| OtfClass | ReadClassDefinition (int classLocation) |
| Reads the class definition from OpenType data. More... |
|
| int[] | ReadUShortArray (int size, int location) |
| Reads the ushort array from OpenType data. More... |
|
| int[] | ReadUShortArray (int size) |
| Reads the ushort array from OpenType data. More... |
|
| virtual void | ReadCoverages (int[] locations, IList< ICollection< int >> coverage) |
| Reads the coverages from OpenType data. More... |
|
| IList< int > | ReadCoverageFormat (int coverageLocation) |
| Reads the coverage format from OpenType data. More... |
|
| virtual SubstLookupRecord[] | ReadSubstLookupRecords (int substCount) |
| Reads the substitution lookup records from OpenType data. More... |
|
| virtual PosLookupRecord[] | ReadPosLookupRecords (int substCount) |
| Reads the positioning lookup records from OpenType data. More... |
|
| virtual TagAndLocation[] | ReadTagAndLocations (int baseLocation) |
| Reads the tag and locations from OpenType data. More... |
|
Additional Inherited Members |
|
Package Attributes inherited from iText.IO.Font.Otf.OpenTypeFontTableReader |
|
| readonly RandomAccessFileOrArray | rf |
| readonly int | tableLocation |
| Stores table location. More... |
|
| IList< OpenTableLookup > | lookupList |
| Stores lookup list. More... |
|
| OpenTypeScript | scriptsType |
| Stores scripts type. More... |
|
| OpenTypeFeature | featuresType |
| Stores features type. More... |
|
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. See the OpenType GSUB table.
|
inline |
Instantiates a new instance of GlyphSubstitutionTableReader.
| rf | the RandomAccessFileOrArray containing the OpenType font |
| gsubTableLocation | the GSUB table location |
| gdef | the GDEF table reader |
| indexGlyphMap | the glyph index to glyph map |
| unitsPerEm | the head.unitsPerEm value from the OpenType font |
|
inlinepackagevirtual |
Reads the lookup table from OpenType data.
| lookupType | the lookup type |
| lookupFlag | specifies processing options, e.g. whether to skip base glyphs, marks or ligatures during glyph substitution or positioning. See Lookup table |
| subTableLocations | the sub table locations |
Implements iText.IO.Font.Otf.OpenTypeFontTableReader.