Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| fop 2.1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.fop.complexscripts.fonts
Class OTFAdvancedTypographicTableReader

    java.lang.Object
      org.apache.fop.complexscripts.fonts.OTFAdvancedTypographicTableReader

    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 Summary
`OTFAdvancedTypographicTableReader(OpenFont otf, FontFileReader in)` Construct an `OTFAdvancedTypographicTableReader` instance.

Method Summary
`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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### OTFAdvancedTypographicTableReader

    public OTFAdvancedTypographicTableReader(OpenFont otf,
                                             FontFileReader in)

  Construct an `OTFAdvancedTypographicTableReader` instance.

  Parameters:
    `ttf` - parent font file reader (must be non-null)
    `in` - font file reader (must be non-null)

Method Detail

### readAll

    public void readAll()
                 throws AdvancedTypographicTableFormatException

  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

    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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| fop 2.1
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.