|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.font.format.xtf.tables.XtfTableDirectory
public class XtfTableDirectory
Class for a TTF/OTF TableDirectory.
| Type | Name | Description |
| Fixed | sfnt version | 0x00010000 for version 1.0. |
| USHORT | numTables | Number of tables. |
| USHORT | searchRange | (Maximum power of 2 numTables) x 16. |
| USHORT | entrySelector | 2 (maximum power of 2 numTables). |
| USHORT | rangeShift | NumTables x 16-searchRange. |
| Nested Class Summary | |
|---|---|
static class |
XtfTableDirectory.Entry
Class for a TTF TableDirectory-Entry. |
| Constructor Summary | |
|---|---|
XtfTableDirectory(RandomAccessR rar)
Create a new object. |
|
| Method Summary | |
|---|---|
XtfTableDirectory.Entry[] |
getEntries()
Returns the entries. |
XtfTableDirectory.Entry |
getEntry(int index)
Returns the DirectoryEntry at the index |
XtfTableDirectory.Entry |
getEntryByTag(int tag)
Returns the DirectoryEntry with a tag |
short |
getEntrySelector()
Returns the entrySelector. |
short |
getNumTables()
Returns the numTables. |
short |
getRangeShift()
Returns the rangeShift. |
short |
getSearchRange()
Returns the searchRange. |
int |
getVersion()
|
void |
writeXML(XMLStreamWriter writer)
Write the data to a XMLStreamWriter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XtfTableDirectory(RandomAccessR rar)
throws java.io.IOException
rar - input
java.io.IOException - if an error occurs| Method Detail |
|---|
public XtfTableDirectory.Entry[] getEntries()
public short getEntrySelector()
public short getNumTables()
public short getRangeShift()
public short getSearchRange()
public int getVersion()
public XtfTableDirectory.Entry getEntry(int index)
index - the index
public XtfTableDirectory.Entry getEntryByTag(int tag)
tag - the tag
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 | |||||||||