org.extex.font.format.xtf.tables
Class TtfTableKERN.KernSubtable

java.lang.Object
  extended by org.extex.font.format.xtf.tables.TtfTableKERN.KernSubtable
All Implemented Interfaces:
XMLWriterConvertible
Direct Known Subclasses:
TtfTableKERN.KernSubtableFormat0, TtfTableKERN.KernSubtableFormat2
Enclosing class:
TtfTableKERN

public abstract static class TtfTableKERN.KernSubtable
extends java.lang.Object
implements XMLWriterConvertible

Abstract class for all kerntables


Constructor Summary
TtfTableKERN.KernSubtable()
           
 
Method Summary
abstract  TtfTableKERN.KerningPair getKerning(int i)
          Returns the kerning
abstract  int getKerningCount()
          Returns the number of kerning pairs.
static TtfTableKERN.KernSubtable read(RandomAccessR rar)
          Read the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.extex.util.xml.XMLWriterConvertible
writeXML
 

Constructor Detail

TtfTableKERN.KernSubtable

public TtfTableKERN.KernSubtable()
Method Detail

read

public static TtfTableKERN.KernSubtable read(RandomAccessR rar)
                                      throws java.io.IOException
Read the table

Parameters:
rar - input
Returns:
Returns the table
Throws:
java.io.IOException - if an IO-error occurs

getKerning

public abstract TtfTableKERN.KerningPair getKerning(int i)
Returns the kerning

Parameters:
i - index
Returns:
Returns the kerning

getKerningCount

public abstract int getKerningCount()
Returns the number of kerning pairs.

Returns:
Returns the number of kerning pairs.