Package org.apache.fontbox.ttf
Class TTFTable
java.lang.Object
org.apache.fontbox.ttf.TTFTable
- Direct Known Subclasses:
CFFTable
,CmapTable
,DigitalSignatureTable
,GlyphSubstitutionTable
,GlyphTable
,HeaderTable
,HorizontalHeaderTable
,HorizontalMetricsTable
,IndexToLocationTable
,KerningTable
,MaximumProfileTable
,NamingTable
,OS2WindowsMetricsTable
,OTLTable
,PostScriptTable
,VerticalHeaderTable
,VerticalMetricsTable
,VerticalOriginTable
A table in a true type font.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
protected final TrueTypeFont
The font which contains this table.protected boolean
Indicates if the table is initialized or not.private long
private long
private String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
boolean
Indicates if the table is already initialized.long
long
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
-
Field Details
-
tag
-
checkSum
private long checkSum -
offset
private long offset -
length
private long length -
initialized
protected volatile boolean initializedIndicates if the table is initialized or not. -
font
The font which contains this table.
-
-
Constructor Details
-
TTFTable
TTFTable(TrueTypeFont font) Constructor.- Parameters:
font
- The font which contains this table.
-
-
Method Details
-
getCheckSum
public long getCheckSum()- Returns:
- Returns the checkSum.
-
setCheckSum
void setCheckSum(long checkSumValue) - Parameters:
checkSumValue
- The checkSum to set.
-
getLength
public long getLength()- Returns:
- Returns the length.
-
setLength
void setLength(long lengthValue) - Parameters:
lengthValue
- The length to set.
-
getOffset
public long getOffset()- Returns:
- Returns the offset.
-
setOffset
void setOffset(long offsetValue) - Parameters:
offsetValue
- The offset to set.
-
getTag
- Returns:
- Returns the tag.
-
setTag
- Parameters:
tagValue
- The tag to set.
-
getInitialized
public boolean getInitialized()Indicates if the table is already initialized.- Returns:
- true if the table is initialized
-
read
This will read the required data from the stream.- Parameters:
ttf
- The font that is being read.data
- The stream to read the data from.- Throws:
IOException
- If there is an error reading the data.
-