Package com.itextpdf.io.font.otf
Class GsubLookupType3
java.lang.Object
com.itextpdf.io.font.otf.OpenTableLookup
com.itextpdf.io.font.otf.GsubLookupType3
LookupType 3: Alternate Substitution Subtable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.itextpdf.io.font.otf.OpenTableLookup
OpenTableLookup.GlyphIndexer -
Field Summary
Fields inherited from class com.itextpdf.io.font.otf.OpenTableLookup
lookupFlag, openReader, subTableLocations -
Constructor Summary
ConstructorsConstructorDescriptionGsubLookupType3(OpenTypeFontTableReader openReader, int lookupFlag, int[] subTableLocations) Creates a new GSUB Lookup Type 3. -
Method Summary
Modifier and TypeMethodDescriptionbooleanhasSubstitution(int index) Checks whether there is a substitution (replacement) for the specified index inthislookup table.protected voidreadSubTable(int subTableLocation) Reads subtable from the specified location.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, readSubTables, setIndexInLookupList, transformLine
-
Constructor Details
-
GsubLookupType3
public GsubLookupType3(OpenTypeFontTableReader openReader, int lookupFlag, int[] subTableLocations) throws IOException Creates a new GSUB Lookup Type 3.- 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
-
hasSubstitution
public boolean hasSubstitution(int index) Description copied from class:OpenTableLookupChecks whether there is a substitution (replacement) for the specified index inthislookup table.- Overrides:
-
hasSubstitutionin classOpenTableLookup - Parameters:
-
index- the index to check for a substitution - Returns:
-
trueif there is substitution,falseotherwise
-