Package com.itextpdf.io.font.otf
Class OpenTypeFontTableReader
java.lang.Object
com.itextpdf.io.font.otf.OpenTypeFontTableReader
- Direct Known Subclasses:
-
GlyphPositioningTableReader,GlyphSubstitutionTableReader
- Author:
- Palash Ray
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OpenTypeFeatureprotected List<OpenTableLookup>protected final RandomAccessFileOrArrayprotected OpenTypeScriptprotected final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOpenTypeFontTableReader(RandomAccessFileOrArray rf, int tableLocation, OpenTypeGdefTableReader gdef, Map<Integer, Glyph> indexGlyphMap, int unitsPerEm) -
Method Summary
Modifier and TypeMethodDescriptiongetFeatures(String[] scripts, String language) getGlyph(int index) intgetGlyphClass(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) intbooleanisSkip(int glyph, int flag) protected final OtfClassreadClassDefinition(int classLocation) readCoverageFormat(int coverageLocation) protected voidreadCoverages(int[] locations, List<Set<Integer>> coverage) protected abstract OpenTableLookupreadLookupTable(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
-