|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.format.xtf.tables.AbstractXtfTable
org.extex.font.format.xtf.tables.TtfTableKERN
public class TtfTableKERN
The 'kern' table contains the values that adjust the intercharacter spacing for glyphs in a font.
| Type | Name | Description |
| fixed32 | version | The version number of the kerning table (0x00010000 for the current version). |
| uint32 | nTables | The number of subtables included in the kerning table.
| Nested Class Summary | |
|---|---|
static class |
TtfTableKERN.KerningPair
KerningPair |
static class |
TtfTableKERN.KernSubtable
Abstract class for all kerntables |
static class |
TtfTableKERN.KernSubtableFormat0
Format 0. |
static class |
TtfTableKERN.KernSubtableFormat2
Format 2. |
| Constructor Summary | |
|---|---|
TtfTableKERN(XtfTableMap tablemap,
XtfTableDirectory.Entry de,
RandomAccessR rar)
Create a new object |
|
| Method Summary | |
|---|---|
int |
getKerning(int l,
int r)
Returns the kerning size. |
int |
getNumberOfTables()
Returns the number of tables. |
java.lang.String |
getShortcut()
Returns the table shortcut. |
TtfTableKERN.KernSubtable |
getTable(int i)
Returns the table |
int |
getType()
Get the table type, as a table directory value. |
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 |
|---|
public TtfTableKERN(XtfTableMap tablemap,
XtfTableDirectory.Entry de,
RandomAccessR rar)
throws java.io.IOException
tablemap - the tablemapde - entryrar - input
java.io.IOException - if an IO-error occurs| Method Detail |
|---|
public int getKerning(int l,
int r)
l - The left value (glyph position).r - The rigth value (glyph position).
public int getNumberOfTables()
public java.lang.String getShortcut()
getShortcut in interface XtfTableXtfTable.getShortcut()public TtfTableKERN.KernSubtable getTable(int i)
i - index
public int getType()
getType in interface XtfTable
public void writeXML(XMLStreamWriter writer)
throws java.io.IOException
writeXML in interface XMLWriterConvertiblewriter - the XML-Writer
java.io.IOException - if an IO-error occurs.XMLWriterConvertible.writeXML(
org.extex.util.xml.XMLStreamWriter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||