|
||||||||||
| 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.TtfTableLOCA
public class TtfTableLOCA
The 'loca' table stores the offsets to the locations of the glyphs in the font relative to the beginning of the 'glyf' table. Its purpose is to provide quick access to the data for a particular character.
| Glyph Index | Offset | Glyph length | |
| 0 | 0 | 100 | |
| 1 | 100 | 150 | |
| 2 | 250 | ||
| .. | .. | .. | |
| n-1 | 1170 | 120 | |
| extra | 1290 |
'loca' short version
| Type | Name | Description |
| uint16 | offsets[n] | The actual local offset divided by 2 is stored. The value of n is the number of glyphs in the font + 1. The number of glyphs in the font is found in the maximum profile table. |
'loca' long version
| Type | Name | Description |
| uint32 | offsets[n] | The actual local offset is stored. The value of n is the number of glyphs in the font + 1. The number of glyphs in the font is found in the maximum profile table. |
| Constructor Summary | |
|---|---|
TtfTableLOCA(XtfTableMap tablemap,
XtfTableDirectory.Entry de,
RandomAccessR rar)
Create a new object. |
|
| Method Summary | |
|---|---|
int |
getInitOrder()
Returns a order number to sort the tables for the init process. |
int |
getOffset(int i)
Returns the offset. |
java.lang.String |
getShortcut()
Returns the table shortcut. |
int |
getType()
Get the table type, as a table directory value. |
void |
init()
Initialize the table. |
void |
writeXML(XMLStreamWriter writer)
Write the data to a XMLStreamWriter. |
| Methods inherited from class org.extex.font.format.xtf.tables.AbstractXtfTable |
|---|
getGlyphName, getTableMap, 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 |
|---|
getTableMap |
| Constructor Detail |
|---|
public TtfTableLOCA(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 getInitOrder()
getInitOrder in interface XtfTablegetInitOrder in class AbstractXtfTableAbstractXtfTable.getInitOrder()public int getOffset(int i)
i - index
public java.lang.String getShortcut()
getShortcut in interface XtfTableXtfTable.getShortcut()public int getType()
getType in interface XtfTablepublic void init()
init in interface XtfTableinit in class AbstractXtfTableAbstractXtfTable.init()
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 | |||||||||