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 Logger
protected final RandomAccessFileOrArray
protected final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadCoverageFormat
(int coverageLocation) private void
readFeatureListTable
(int featureListTableLocationOffset) private void
readFeatureTable
(int featureTableLocationOffset) private TableHeader
private void
readLangSysRecord
(Map<String, Integer> langSysRecords) private void
readLangSysTable
(int langSysTableLocationOffset) private void
readLookupListTable
(int lookupListTableLocation) private void
readLookupTable
(int lookupTableLocation) private void
readRangeRecord
(List<Integer> glyphIds) private void
readScriptListTable
(int scriptListTableLocationOffset) private void
readScriptRecord
(int scriptListTableLocationOffset, Map<String, Integer> scriptRecords) private void
readScriptTable
(int scriptTableLocationOffset) protected abstract void
readSubTable
(int lookupType, int subTableLocation) protected final void
This 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
-