public class TTFTable
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
checkSum |
protected TrueTypeFont |
font
The font which contains this table.
|
protected boolean |
initialized
Indicates if the table is initialized or not.
|
private long |
length |
private long |
offset |
private java.lang.String |
tag |
Constructor and Description |
---|
TTFTable(TrueTypeFont font)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getCheckSum() |
boolean |
getInitialized()
Indicates if the table is already initialized.
|
long |
getLength() |
long |
getOffset() |
java.lang.String |
getTag() |
(package private) void |
read(TrueTypeFont ttf,
TTFDataStream data)
This will read the required data from the stream.
|
(package private) void |
setCheckSum(long checkSumValue) |
(package private) void |
setLength(long lengthValue) |
(package private) void |
setOffset(long offsetValue) |
(package private) void |
setTag(java.lang.String tagValue) |
private java.lang.String tag
private long checkSum
private long offset
private long length
protected boolean initialized
protected final TrueTypeFont font
TTFTable(TrueTypeFont font)
font
- The font which contains this table.public long getCheckSum()
void setCheckSum(long checkSumValue)
checkSumValue
- The checkSum to set.public long getLength()
void setLength(long lengthValue)
lengthValue
- The length to set.public long getOffset()
void setOffset(long offsetValue)
offsetValue
- The offset to set.public java.lang.String getTag()
void setTag(java.lang.String tagValue)
tagValue
- The tag to set.public boolean getInitialized()
void read(TrueTypeFont ttf, TTFDataStream data) throws java.io.IOException
ttf
- The font that is being read.data
- The stream to read the data from.java.io.IOException
- If there is an error reading the data.