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

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

public class TtfTableCVT
extends AbstractXtfTable
implements XtfTable, XMLWriterConvertible

The 'cvt ' table is optional.

It can be used by fonts that contain instructions. It contains an array of FWords that can be accessed by instructions. The 'cvt ' is used to tie together certain font features when their values are sufficiently close to the table value. The number of control value table entries can be calculated by dividing the length of the 'cvt ' table, as given in the table directory, by 4.

Type Description
FWORD[ n ] List of n values referenceable by instructions.

Version:
$Revision: 6604 $
Author:
Michael Niedermair

Constructor Summary
TtfTableCVT(XtfTableMap tablemap, XtfTableDirectory.Entry de, RandomAccessR rar)
          Create a new object.
 
Method Summary
 java.lang.String getShortcut()
          Returns the table shortcut.
 int getType()
          Get the table type, as a table directory value.
 short[] getValues()
          Returns the values
 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

TtfTableCVT

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

Parameters:
tablemap - the tablemap
de - directory entry
rar - the RandomAccessInput
Throws:
java.io.IOException - if an error occured
Method Detail

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

getValues

public short[] getValues()
Returns the values

Returns:
Returns the values

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)