Package com.itextpdf.io.font.otf
Class GsubLookupType5
java.lang.Object
com.itextpdf.io.font.otf.OpenTableLookup
com.itextpdf.io.font.otf.GsubLookupType5
- Direct Known Subclasses:
-
GsubLookupType6
LookupType 5: Contextual Substitution Subtable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.itextpdf.io.font.otf.OpenTableLookup
OpenTableLookup.GlyphIndexer -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<ContextualTable<ContextualSubstRule>>Stores sub tables.Fields inherited from class com.itextpdf.io.font.otf.OpenTableLookup
lookupFlag, openReader, subTableLocations -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGsubLookupType5(OpenTypeFontTableReader openReader, int lookupFlag, int[] subTableLocations) Creates a new GSUB Lookup Type 5. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidreadSubTable(int subTableLocation) Reads subtable from the specified location.protected voidreadSubTableFormat1(int subTableLocation) Reads the sub table format1 from OpenType data.protected voidreadSubTableFormat2(int subTableLocation) Reads the sub table format2 from OpenType data.protected voidreadSubTableFormat3(int subTableLocation) Reads the sub table format3 from OpenType data.booleantransformOne(GlyphLine line) Apply transformation to only one glyph from the glyph line.Methods inherited from class com.itextpdf.io.font.otf.OpenTableLookup
getIndexInLookupList, getLookupFlag, hasSubstitution, readSubTables, setIndexInLookupList, transformLine
-
Field Details
-
subTables
Stores sub tables.
-
-
Constructor Details
-
GsubLookupType5
protected GsubLookupType5(OpenTypeFontTableReader openReader, int lookupFlag, int[] subTableLocations) throws IOException Creates a new GSUB Lookup Type 5.- Parameters:
-
openReader- the OpenType font reader -
lookupFlag- specifies processing options, e.g. whether to skip base glyphs, marks or ligatures during glyph substitution or positioning. See Lookup table -
subTableLocations- the sub table locations - Throws:
-
IOException- if the OpenType data cannot be read
-
-
Method Details
-
transformOne
Description copied from class:OpenTableLookupApply transformation to only one glyph from the glyph line.- Specified by:
-
transformOnein classOpenTableLookup - Parameters:
-
line- the glyph line to transform - Returns:
-
trueif transformation was applied,falseotherwise
-
readSubTable
Description copied from class:OpenTableLookupReads subtable from the specified location.- Specified by:
-
readSubTablein classOpenTableLookup - Parameters:
-
subTableLocation- the subtable location - Throws:
-
IOException- exception is thrown in case an I/O error occurs when reading subtable
-
readSubTableFormat1
Reads the sub table format1 from OpenType data.- Parameters:
-
subTableLocation- the sub table location - Throws:
-
IOException- if the OpenType data cannot be read
-
readSubTableFormat2
Reads the sub table format2 from OpenType data.- Parameters:
-
subTableLocation- the sub table location - Throws:
-
IOException- if the OpenType data cannot be read
-
readSubTableFormat3
Reads the sub table format3 from OpenType data.- Parameters:
-
subTableLocation- the sub table location - Throws:
-
IOException- if the OpenType data cannot be read
-