Package com.itextpdf.io.font.otf
Class OpenTypeGdefTableReader
java.lang.Object
com.itextpdf.io.font.otf.OpenTypeGdefTableReader
Reads glyph classification data from an OpenType GDEF table.
-
Constructor Summary
ConstructorsConstructorDescriptionOpenTypeGdefTableReader(RandomAccessFileOrArray rf, int tableLocation) Creates a new GDEF reader. -
Method Summary
Modifier and TypeMethodDescriptionReturns the glyph class table.booleanisSkip(int glyph, int flag) Checks if lookup must ignore the specified glyph when processing glyph sequences.voidReads the GDEF table from OpenType data.
-
Constructor Details
-
OpenTypeGdefTableReader
Creates a new GDEF reader.- Parameters:
-
rf- the raw source -
tableLocation- the table location
-
-
Method Details
-
readTable
Reads the GDEF table from OpenType data.- Throws:
-
IOException- if the OpenType data cannot be read
-
isSkip
public boolean isSkip(int glyph, int flag) Checks if lookup must ignore the specified glyph when processing glyph sequences.- Parameters:
-
glyph- glyph to check -
flag- specifies processing options, e.g. whether to skip base glyphs, marks or ligatures during glyph substitution or positioning. See Lookup table - Returns:
-
trueif the specified glyph should be skipped,falseotherwise
-
getGlyphClassTable
Returns the glyph class table.- Returns:
- the requested result
-