Class OpenTypeFontTableReader
- Namespace
- iText.IO.Font.Otf
- Assembly
- itext.io.dll
public abstract class OpenTypeFontTableReader
- Inheritance
-
OpenTypeFontTableReader
- Derived
-
- Inherited Members
-
Constructors
OpenTypeFontTableReader(RandomAccessFileOrArray, int, OpenTypeGdefTableReader, IDictionary<int, Glyph>, int)
protected OpenTypeFontTableReader(RandomAccessFileOrArray rf, int tableLocation, OpenTypeGdefTableReader gdef, IDictionary<int, Glyph> indexGlyphMap, int unitsPerEm)
Parameters
rf
RandomAccessFileOrArray
tableLocation
int
gdef
OpenTypeGdefTableReader
indexGlyphMap
IDictionary<int, Glyph>
unitsPerEm
int
Fields
featuresType
protected OpenTypeFeature featuresType
Field Value
- OpenTypeFeature
lookupList
protected IList<OpenTableLookup> lookupList
Field Value
- IList<OpenTableLookup>
rf
protected readonly RandomAccessFileOrArray rf
Field Value
- RandomAccessFileOrArray
scriptsType
protected OpenTypeScript scriptsType
Field Value
- OpenTypeScript
tableLocation
protected readonly int tableLocation
Field Value
- int
Methods
GetFeatureRecords()
public virtual IList<FeatureRecord> GetFeatureRecords()
Returns
- IList<FeatureRecord>
GetFeatures(string[], string)
public virtual IList<FeatureRecord> GetFeatures(string[] scripts, string language)
Parameters
scripts
string[]
language
string
Returns
- IList<FeatureRecord>
GetGlyph(int)
public virtual Glyph GetGlyph(int index)
Parameters
index
int
Returns
- Glyph
GetGlyphClass(int)
public virtual int GetGlyphClass(int glyphCode)
Parameters
glyphCode
int
Returns
- int
GetLanguageRecord(string)
public virtual LanguageRecord GetLanguageRecord(string otfScriptTag)
Parameters
otfScriptTag
string
Returns
- LanguageRecord
GetLanguageRecord(string, string)
public virtual LanguageRecord GetLanguageRecord(string otfScriptTag, string langTag)
Parameters
otfScriptTag
string
langTag
string
Returns
- LanguageRecord
GetLookupTable(int)
public virtual OpenTableLookup GetLookupTable(int idx)
Parameters
idx
int
Returns
- OpenTableLookup
GetLookups(FeatureRecord)
public virtual IList<OpenTableLookup> GetLookups(FeatureRecord feature)
Parameters
feature
FeatureRecord
Returns
- IList<OpenTableLookup>
GetLookups(FeatureRecord[])
public virtual IList<OpenTableLookup> GetLookups(FeatureRecord[] features)
Parameters
features
FeatureRecord[]
Returns
- IList<OpenTableLookup>
GetRequiredFeature(string[], string)
public virtual FeatureRecord GetRequiredFeature(string[] scripts, string language)
Parameters
scripts
string[]
language
string
Returns
- FeatureRecord
GetScriptRecords()
public virtual IList<ScriptRecord> GetScriptRecords()
Returns
- IList<ScriptRecord>
GetSpecificFeatures(IList<FeatureRecord>, string[])
public virtual IList<FeatureRecord> GetSpecificFeatures(IList<FeatureRecord> features, string[] specific)
Parameters
features
IList<FeatureRecord>
specific
string[]
Returns
- IList<FeatureRecord>
GetUnitsPerEm()
public virtual int GetUnitsPerEm()
Returns
- int
IsSkip(int, int)
public virtual bool IsSkip(int glyph, int flag)
Parameters
glyph
int
flag
int
Returns
- bool
ReadClassDefinition(int)
protected OtfClass ReadClassDefinition(int classLocation)
Parameters
classLocation
int
Returns
- OtfClass
ReadCoverageFormat(int)
protected IList<int> ReadCoverageFormat(int coverageLocation)
Parameters
coverageLocation
int
Returns
- IList<int>
ReadCoverages(int[], IList<ICollection<int>>)
protected virtual void ReadCoverages(int[] locations, IList<ICollection<int>> coverage)
Parameters
locations
int[]
coverage
IList<ICollection<int>>
ReadLookupTable(int, int, int[])
protected abstract OpenTableLookup ReadLookupTable(int lookupType, int lookupFlag, int[] subTableLocations)
Parameters
lookupType
int
lookupFlag
int
subTableLocations
int[]
Returns
- OpenTableLookup
ReadPosLookupRecords(int)
protected virtual PosLookupRecord[] ReadPosLookupRecords(int substCount)
Parameters
substCount
int
Returns
- PosLookupRecord[]
ReadSubstLookupRecords(int)
protected virtual SubstLookupRecord[] ReadSubstLookupRecords(int substCount)
Parameters
substCount
int
Returns
- SubstLookupRecord[]
ReadTagAndLocations(int)
protected virtual TagAndLocation[] ReadTagAndLocations(int baseLocation)
Parameters
baseLocation
int
Returns
- TagAndLocation[]
ReadUShortArray(int)
protected int[] ReadUShortArray(int size)
Parameters
size
int
Returns
- int[]
ReadUShortArray(int, int)
protected int[] ReadUShortArray(int size, int location)
Parameters
size
int
location
int
Returns
- int[]