Class OTFAdvancedTypographicTableReader
- java.lang.Object
-
- org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader
-
public final class OTFAdvancedTypographicTableReader extends java.lang.ObjectOpenType Font (OTF) advanced typographic table reader. Used by @{Link org.apache.fop.fonts.truetype.TTFFile} to read advanced typographic tables (GDEF, GSUB, GPOS).
This work was originally authored by Glenn Adams (gadams@apache.org).
-
-
Constructor Summary
Constructors Constructor Description OTFAdvancedTypographicTableReader(OpenFont otf, FontFileReader in)Construct anOTFAdvancedTypographicTableReaderinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GlyphDefinitionTablegetGDEF()Returns the GDEF table or null if none present.GlyphPositioningTablegetGPOS()Returns the GPOS table or null if none present.GlyphSubstitutionTablegetGSUB()Returns the GSUB table or null if none present.booleanhasAdvancedTable()Determine if advanced (typographic) table is present.voidreadAll()Read all advanced typographic tables.
-
-
-
Constructor Detail
-
OTFAdvancedTypographicTableReader
public OTFAdvancedTypographicTableReader(OpenFont otf, FontFileReader in)
Construct anOTFAdvancedTypographicTableReaderinstance.- Parameters:
otf- parent font file reader (must be non-null)in- font file reader (must be non-null)
-
-
Method Detail
-
readAll
public void readAll() throws AdvancedTypographicTableFormatExceptionRead all advanced typographic tables.- Throws:
AdvancedTypographicTableFormatException- if ATT table has invalid format
-
hasAdvancedTable
public boolean hasAdvancedTable()
Determine if advanced (typographic) table is present.- Returns:
- true if advanced (typographic) table is present
-
getGDEF
public GlyphDefinitionTable getGDEF()
Returns the GDEF table or null if none present.- Returns:
- the GDEF table
-
getGSUB
public GlyphSubstitutionTable getGSUB()
Returns the GSUB table or null if none present.- Returns:
- the GSUB table
-
getGPOS
public GlyphPositioningTable getGPOS()
Returns the GPOS table or null if none present.- Returns:
- the GPOS table
-
-