public abstract class OpenTypeFontTableReader extends Object
| Modifier and Type | Field and Description |
|---|---|
protected OpenTypeFeature |
featuresType |
protected List<OpenTableLookup> |
lookupList |
protected RandomAccessFileOrArray |
rf |
protected OpenTypeScript |
scriptsType |
protected int |
tableLocation |
| Modifier | Constructor and Description |
|---|---|
protected |
OpenTypeFontTableReader(RandomAccessFileOrArray rf,
int tableLocation,
OpenTypeGdefTableReader gdef,
Map<Integer,Glyph> indexGlyphMap,
int unitsPerEm) |
protected final RandomAccessFileOrArray rf
protected final int tableLocation
protected List<OpenTableLookup> lookupList
protected OpenTypeScript scriptsType
protected OpenTypeFeature featuresType
protected OpenTypeFontTableReader(RandomAccessFileOrArray rf, int tableLocation, OpenTypeGdefTableReader gdef, Map<Integer,Glyph> indexGlyphMap, int unitsPerEm)
public Glyph getGlyph(int index)
public OpenTableLookup getLookupTable(int idx)
public List<ScriptRecord> getScriptRecords()
public List<FeatureRecord> getFeatureRecords()
public List<FeatureRecord> getFeatures(String[] scripts, String language)
public List<FeatureRecord> getSpecificFeatures(List<FeatureRecord> features, String[] specific)
public FeatureRecord getRequiredFeature(String[] scripts, String language)
public List<OpenTableLookup> getLookups(FeatureRecord[] features)
public List<OpenTableLookup> getLookups(FeatureRecord feature)
public boolean isSkip(int glyph,
int flag)
public int getGlyphClass(int glyphCode)
public int getUnitsPerEm()
public LanguageRecord getLanguageRecord(String otfScriptTag)
public LanguageRecord getLanguageRecord(String otfScriptTag, String langTag)
protected abstract OpenTableLookup readLookupTable(int lookupType, int lookupFlag, int[] subTableLocations) throws IOException
IOExceptionprotected final OtfClass readClassDefinition(int classLocation)
protected final int[] readUShortArray(int size,
int location)
throws IOException
IOExceptionprotected final int[] readUShortArray(int size)
throws IOException
IOExceptionprotected void readCoverages(int[] locations,
List<Set<Integer>> coverage)
throws IOException
IOExceptionprotected final List<Integer> readCoverageFormat(int coverageLocation) throws IOException
IOExceptionprotected SubstLookupRecord[] readSubstLookupRecords(int substCount) throws IOException
IOExceptionprotected PosLookupRecord[] readPosLookupRecords(int substCount) throws IOException
IOExceptionprotected TagAndLocation[] readTagAndLocations(int baseLocation) throws IOException
IOExceptionCopyright © 1998–2023 Apryse Group NV. All rights reserved.