Package com.itextpdf.text.pdf.fonts.otf
Class OpenTypeFontTableReader
java.lang.Object
com.itextpdf.text.pdf.fonts.otf.OpenTypeFontTableReader
- Direct Known Subclasses:
GlyphPositioningTableReader,GlyphSubstitutionTableReader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Loggerprotected final RandomAccessFileOrArrayprotected final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadCoverageFormat(int coverageLocation) private voidreadFeatureListTable(int featureListTableLocationOffset) private voidreadFeatureTable(int featureTableLocationOffset) private TableHeaderprivate voidreadLangSysRecord(Map<String, Integer> langSysRecords) private voidreadLangSysTable(int langSysTableLocationOffset) private voidreadLookupListTable(int lookupListTableLocation) private voidreadLookupTable(int lookupTableLocation) private voidreadRangeRecord(List<Integer> glyphIds) private voidreadScriptListTable(int scriptListTableLocationOffset) private voidreadScriptRecord(int scriptListTableLocationOffset, Map<String, Integer> scriptRecords) private voidreadScriptTable(int scriptTableLocationOffset) protected abstract voidreadSubTable(int lookupType, int subTableLocation) protected final voidThis is the starting point of the class.
-
Field Details
-
LOG
-
rf
-
tableLocation
protected final int tableLocation -
supportedLanguages
-
-
Constructor Details
-
OpenTypeFontTableReader
- Throws:
IOException
-
-
Method Details
-
getSupportedLanguage
- Throws:
FontReadingException
-
startReadingTable
This is the starting point of the class. A sub-class must call this method to start getting call backs to thereadSubTable(int, int)method.- Throws:
FontReadingException
-
readSubTable
- Throws:
IOException
-
readLookupListTable
- Throws:
IOException
-
readLookupTable
- Throws:
IOException
-
readCoverageFormat
- Throws:
IOException
-
readRangeRecord
- Throws:
IOException
-
readScriptListTable
- Throws:
IOException
-
readScriptRecord
private void readScriptRecord(int scriptListTableLocationOffset, Map<String, Integer> scriptRecords) throws IOException- Throws:
IOException
-
readScriptTable
- Throws:
IOException
-
readLangSysRecord
- Throws:
IOException
-
readLangSysTable
- Throws:
IOException
-
readFeatureListTable
- Throws:
IOException
-
readFeatureTable
- Throws:
IOException
-
readHeader
- Throws:
IOException
-