public final class OTFAdvancedTypographicTableReader
extends java.lang.Object
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 and Description |
---|
OTFAdvancedTypographicTableReader(TTFFile ttf,
FontFileReader in)
Construct an
OTFAdvancedTypographicTableReader instance. |
Modifier and Type | Method and Description |
---|---|
GlyphDefinitionTable |
getGDEF()
Returns the GDEF table or null if none present.
|
GlyphPositioningTable |
getGPOS()
Returns the GPOS table or null if none present.
|
GlyphSubstitutionTable |
getGSUB()
Returns the GSUB table or null if none present.
|
boolean |
hasAdvancedTable()
Determine if advanced (typographic) table is present.
|
void |
readAll()
Read all advanced typographic tables.
|
public OTFAdvancedTypographicTableReader(TTFFile ttf, FontFileReader in)
OTFAdvancedTypographicTableReader
instance.ttf
- parent font file reader (must be non-null)in
- font file reader (must be non-null)public void readAll() throws AdvancedTypographicTableFormatException
AdvancedTypographicTableFormatException
- if ATT table has invalid formatpublic boolean hasAdvancedTable()
public GlyphDefinitionTable getGDEF()
public GlyphSubstitutionTable getGSUB()
public GlyphPositioningTable getGPOS()
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.