Class OTFAdvancedTypographicTableReader
java.lang.Object
org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader
OpenType 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
ConstructorDescriptionConstruct anOTFAdvancedTypographicTableReader
instance. -
Method Summary
Modifier and TypeMethodDescriptiongetGDEF()
Returns the GDEF table or null if none present.getGPOS()
Returns the GPOS table or null if none present.getGSUB()
Returns the GSUB table or null if none present.boolean
Determine if advanced (typographic) table is present.void
readAll()
Read all advanced typographic tables.
-
Constructor Details
-
OTFAdvancedTypographicTableReader
Construct anOTFAdvancedTypographicTableReader
instance.- Parameters:
otf
- parent font file reader (must be non-null)in
- font file reader (must be non-null)
-
-
Method Details
-
readAll
Read 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
Returns the GDEF table or null if none present.- Returns:
- the GDEF table
-
getGSUB
Returns the GSUB table or null if none present.- Returns:
- the GSUB table
-
getGPOS
Returns the GPOS table or null if none present.- Returns:
- the GPOS table
-