public class HeaderTable extends TTFTable
Modifier and Type | Field and Description |
---|---|
private long |
checkSumAdjustment |
private java.util.Calendar |
created |
private int |
flags |
private short |
fontDirectionHint |
private float |
fontRevision |
private short |
glyphDataFormat |
private short |
indexToLocFormat |
private int |
lowestRecPPEM |
static int |
MAC_STYLE_BOLD
Bold macStyle flag.
|
static int |
MAC_STYLE_ITALIC
Italic macStyle flag.
|
private int |
macStyle |
private long |
magicNumber |
private java.util.Calendar |
modified |
static java.lang.String |
TAG
Tag to identify this table.
|
private int |
unitsPerEm |
private float |
version |
private short |
xMax |
private short |
xMin |
private short |
yMax |
private short |
yMin |
font, initialized
Constructor and Description |
---|
HeaderTable(TrueTypeFont font) |
Modifier and Type | Method and Description |
---|---|
long |
getCheckSumAdjustment() |
java.util.Calendar |
getCreated() |
int |
getFlags() |
short |
getFontDirectionHint() |
float |
getFontRevision() |
short |
getGlyphDataFormat() |
short |
getIndexToLocFormat() |
int |
getLowestRecPPEM() |
int |
getMacStyle() |
long |
getMagicNumber() |
java.util.Calendar |
getModified() |
int |
getUnitsPerEm() |
float |
getVersion() |
short |
getXMax() |
short |
getXMin() |
short |
getYMax() |
short |
getYMin() |
(package private) void |
read(TrueTypeFont ttf,
TTFDataStream data)
This will read the required data from the stream.
|
void |
setCheckSumAdjustment(long checkSumAdjustmentValue) |
void |
setCreated(java.util.Calendar createdValue) |
void |
setFlags(int flagsValue) |
void |
setFontDirectionHint(short fontDirectionHintValue) |
void |
setFontRevision(float fontRevisionValue) |
void |
setGlyphDataFormat(short glyphDataFormatValue) |
void |
setIndexToLocFormat(short indexToLocFormatValue) |
void |
setLowestRecPPEM(int lowestRecPPEMValue) |
void |
setMacStyle(int macStyleValue) |
void |
setMagicNumber(long magicNumberValue) |
void |
setModified(java.util.Calendar modifiedValue) |
void |
setUnitsPerEm(int unitsPerEmValue) |
void |
setVersion(float versionValue) |
void |
setXMax(short maxValue) |
void |
setXMin(short minValue) |
void |
setYMax(short maxValue) |
void |
setYMin(short minValue) |
getCheckSum, getInitialized, getLength, getOffset, getTag, setCheckSum, setLength, setOffset, setTag
public static final java.lang.String TAG
public static final int MAC_STYLE_BOLD
public static final int MAC_STYLE_ITALIC
private float version
private float fontRevision
private long checkSumAdjustment
private long magicNumber
private int flags
private int unitsPerEm
private java.util.Calendar created
private java.util.Calendar modified
private short xMin
private short yMin
private short xMax
private short yMax
private int macStyle
private int lowestRecPPEM
private short fontDirectionHint
private short indexToLocFormat
private short glyphDataFormat
HeaderTable(TrueTypeFont font)
void read(TrueTypeFont ttf, TTFDataStream data) throws java.io.IOException
public long getCheckSumAdjustment()
public void setCheckSumAdjustment(long checkSumAdjustmentValue)
checkSumAdjustmentValue
- The checkSumAdjustment to set.public java.util.Calendar getCreated()
public void setCreated(java.util.Calendar createdValue)
createdValue
- The created to set.public int getFlags()
public void setFlags(int flagsValue)
flagsValue
- The flags to set.public short getFontDirectionHint()
public void setFontDirectionHint(short fontDirectionHintValue)
fontDirectionHintValue
- The fontDirectionHint to set.public float getFontRevision()
public void setFontRevision(float fontRevisionValue)
fontRevisionValue
- The fontRevision to set.public short getGlyphDataFormat()
public void setGlyphDataFormat(short glyphDataFormatValue)
glyphDataFormatValue
- The glyphDataFormat to set.public short getIndexToLocFormat()
public void setIndexToLocFormat(short indexToLocFormatValue)
indexToLocFormatValue
- The indexToLocFormat to set.public int getLowestRecPPEM()
public void setLowestRecPPEM(int lowestRecPPEMValue)
lowestRecPPEMValue
- The lowestRecPPEM to set.public int getMacStyle()
public void setMacStyle(int macStyleValue)
macStyleValue
- The macStyle to set.public long getMagicNumber()
public void setMagicNumber(long magicNumberValue)
magicNumberValue
- The magicNumber to set.public java.util.Calendar getModified()
public void setModified(java.util.Calendar modifiedValue)
modifiedValue
- The modified to set.public int getUnitsPerEm()
public void setUnitsPerEm(int unitsPerEmValue)
unitsPerEmValue
- The unitsPerEm to set.public float getVersion()
public void setVersion(float versionValue)
versionValue
- The version to set.public short getXMax()
public void setXMax(short maxValue)
maxValue
- The xMax to set.public short getXMin()
public void setXMin(short minValue)
minValue
- The xMin to set.public short getYMax()
public void setYMax(short maxValue)
maxValue
- The yMax to set.public short getYMin()
public void setYMin(short minValue)
minValue
- The yMin to set.