org.extex.font.format.xtf.tables
Class OtfTableBASE

java.lang.Object
  extended by org.extex.font.format.xtf.tables.AbstractXtfTable
      extended by org.extex.font.format.xtf.tables.OtfTableBASE
All Implemented Interfaces:
XtfGlyphName, XtfTable, XMLWriterConvertible

public class OtfTableBASE
extends AbstractXtfTable
implements XtfTable, XMLWriterConvertible

The Baseline table (BASE) provides information used to align glyphs of different scripts and sizes in a line of text, whether the glyphs are in the same font or in different fonts. To improve text layout, the Baseline table also provides minimum (min) and maximum (max) glyph extent values for each script, language system, or feature in a font.

Type Name Description
fixed32 Version Version of the BASE table-initially 0x00010000
Offset HorizAxis Offset to horizontal Axis table-from beginning of BASE table-may be NULL
Offset VertAxis Offset to vertical Axis table-from beginning of BASE table-may be NULL

Version:
$Revision: 6604 $
Author:
Michael Niedermair

Nested Class Summary
 class OtfTableBASE.Axis
          Axis (vertical or horizontal) TypeNameDescription Offset BaseTagList Offset to BaseTagList table-from beginning of Axis table-may be NULL Offset BaseScriptList Offset to BaseScriptList table-from beginning of Axis table
 class OtfTableBASE.BaseTagList
          The BaseTagList table identifies the baselines for all scripts in the font that are rendered in the same text direction.
 
Constructor Summary
OtfTableBASE(XtfTableMap tablemap, XtfTableDirectory.Entry de, RandomAccessR rar)
          Create a new object
 
Method Summary
 int getHorizAxisOffset()
          Returns the horizAxisOffset.
 OtfTableBASE.Axis getHorizontal()
          Getter for horizontal.
 java.lang.String getShortcut()
          Returns the table shortcut.
 int getType()
          Get the table type, as a table directory value.
 int getVersion()
          Returns the version.
 int getVertAxisOffset()
          Returns the vertAxisOffset.
 OtfTableBASE.Axis getVertical()
          Getter for vertical.
 void writeXML(XMLStreamWriter writer)
          Write the data to a XMLStreamWriter.
 
Methods inherited from class org.extex.font.format.xtf.tables.AbstractXtfTable
getGlyphName, getInitOrder, getTableMap, init, writeStartElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.extex.font.format.xtf.tables.XtfTable
getInitOrder, getTableMap, init
 

Constructor Detail

OtfTableBASE

public OtfTableBASE(XtfTableMap tablemap,
                    XtfTableDirectory.Entry de,
                    RandomAccessR rar)
             throws java.io.IOException
Create a new object

Parameters:
tablemap - the table map
de - entry
rar - input
Throws:
java.io.IOException - if an IO-error occurs
Method Detail

getHorizAxisOffset

public int getHorizAxisOffset()
Returns the horizAxisOffset.

Returns:
Returns the horizAxisOffset.

getHorizontal

public OtfTableBASE.Axis getHorizontal()
Getter for horizontal.

Returns:
the horizontal

getShortcut

public java.lang.String getShortcut()
Returns the table shortcut.

Specified by:
getShortcut in interface XtfTable
Returns:
Returns the table shortcut.
See Also:
XtfTable.getShortcut()

getType

public int getType()
Get the table type, as a table directory value.

Specified by:
getType in interface XtfTable
Returns:
Returns the table type

getVersion

public int getVersion()
Returns the version.

Returns:
Returns the version.

getVertAxisOffset

public int getVertAxisOffset()
Returns the vertAxisOffset.

Returns:
Returns the vertAxisOffset.

getVertical

public OtfTableBASE.Axis getVertical()
Getter for vertical.

Returns:
the vertical

writeXML

public void writeXML(XMLStreamWriter writer)
              throws java.io.IOException
Write the data to a XMLStreamWriter.

Specified by:
writeXML in interface XMLWriterConvertible
Parameters:
writer - the XML-Writer
Throws:
java.io.IOException - if an IO-error occurs.
See Also:
XMLWriterConvertible.writeXML( org.extex.util.xml.XMLStreamWriter)