|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.font.format.ttf.TTFOffsetTableRecord
public final class TTFOffsetTableRecord
A TrueType or OpenType Offset Table Record. This stores the offset and length of one table in the font.
| Field Summary | |
|---|---|
static byte |
ENTRY_BYTES
The size, in bytes, of each Table Directory entry. |
| Method Summary | |
|---|---|
TTFOffsetTable |
getDirectory()
Returns the parent directory. |
int |
getLength()
Returns the length, in bytes, of this table entry. |
int |
getOffset()
Returns the offset from the beginning of the file, in bytes, of this table entry. |
org.foray.font.format.ttf.TTFTable |
getTable()
Returns the TTFTable that this entry points to. |
String |
getTag()
Return this table's tag name. |
static TTFOffsetTableRecord |
parse(TTFOffsetTable directory,
RandomAccessInput raInput)
Constructor. |
protected void |
setTable(org.foray.font.format.ttf.TTFTable table)
Sets the TTFTable that corresponds to this table directory entry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte ENTRY_BYTES
| Method Detail |
|---|
public static TTFOffsetTableRecord parse(TTFOffsetTable directory,
RandomAccessInput raInput)
throws IOException
directory - The parent directory instance from which this entry is read.raInput - The input being parsed.
IOException - For i/o errors when parsing the entry.public TTFOffsetTable getDirectory()
public String getTag()
public int getOffset()
public int getLength()
protected void setTable(org.foray.font.format.ttf.TTFTable table)
table - The table that corresponds to this entry.public org.foray.font.format.ttf.TTFTable getTable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||