Package com.itextpdf.io.font.otf
Class OpenTypeFontTableReader
java.lang.Object
com.itextpdf.io.font.otf.OpenTypeFontTableReader
- Direct Known Subclasses:
-
GlyphPositioningTableReader
,GlyphSubstitutionTableReader
-
Field Summary
Modifier and TypeFieldDescriptionprotected OpenTypeFeature
protected List<OpenTableLookup>
protected final RandomAccessFileOrArray
protected OpenTypeScript
protected final int
-
Constructor Summary
ModifierConstructorDescriptionprotected
OpenTypeFontTableReader
(RandomAccessFileOrArray rf, int tableLocation, OpenTypeGdefTableReader gdef, Map<Integer, Glyph> indexGlyphMap, int unitsPerEm) -
Method Summary
Modifier and TypeMethodDescriptiongetFeatures
(String[] scripts, String language) getGlyph
(int index) int
getGlyphClass
(int glyphCode) getLanguageRecord
(String otfScriptTag) getLanguageRecord
(String otfScriptTag, String langTag) getLookups
(FeatureRecord feature) getLookups
(FeatureRecord[] features) getLookupTable
(int idx) getRequiredFeature
(String[] scripts, String language) getSpecificFeatures
(List<FeatureRecord> features, String[] specific) int
boolean
isSkip
(int glyph, int flag) protected final OtfClass
readClassDefinition
(int classLocation) readCoverageFormat
(int coverageLocation) protected void
readCoverages
(int[] locations, List<Set<Integer>> coverage) protected abstract OpenTableLookup
readLookupTable
(int lookupType, int lookupFlag, int[] subTableLocations) protected PosLookupRecord[]
readPosLookupRecords
(int substCount) protected SubstLookupRecord[]
readSubstLookupRecords
(int substCount) protected TagAndLocation[]
readTagAndLocations
(int baseLocation) protected final int[]
readUShortArray
(int size) protected final int[]
readUShortArray
(int size, int location)
-
Field Details
-
rf
-
tableLocation
protected final int tableLocation -
lookupList
-
scriptsType
-
featuresType
-
-
Constructor Details
-
OpenTypeFontTableReader
protected OpenTypeFontTableReader(RandomAccessFileOrArray rf, int tableLocation, OpenTypeGdefTableReader gdef, Map<Integer, Glyph> indexGlyphMap, int unitsPerEm)
-
-
Method Details
-
getGlyph
-
getLookupTable
-
getScriptRecords
-
getFeatureRecords
-
getFeatures
-
getSpecificFeatures
-
getRequiredFeature
-
getLookups
-
getLookups
-
isSkip
public boolean isSkip(int glyph, int flag) -
getGlyphClass
public int getGlyphClass(int glyphCode) -
getUnitsPerEm
public int getUnitsPerEm() -
getLanguageRecord
-
getLanguageRecord
-
readLookupTable
protected abstract OpenTableLookup readLookupTable(int lookupType, int lookupFlag, int[] subTableLocations) throws IOException - Throws:
-
IOException
-
readClassDefinition
-
readUShortArray
- Throws:
-
IOException
-
readUShortArray
- Throws:
-
IOException
-
readCoverages
- Throws:
-
IOException
-
readCoverageFormat
- Throws:
-
IOException
-
readSubstLookupRecords
- Throws:
-
IOException
-
readPosLookupRecords
- Throws:
-
IOException
-
readTagAndLocations
- Throws:
-
IOException
-