public class HeaderTable extends TTFTable
Modifier and Type | Field and Description |
---|---|
static int |
MAC_STYLE_BOLD
Bold macStyle flag.
|
static int |
MAC_STYLE_ITALIC
Italic macStyle flag.
|
static String |
TAG
Tag to identify this table.
|
font, initialized
Modifier and Type | Method and Description |
---|---|
long |
getCheckSumAdjustment() |
Calendar |
getCreated() |
int |
getFlags() |
short |
getFontDirectionHint() |
float |
getFontRevision() |
short |
getGlyphDataFormat() |
short |
getIndexToLocFormat() |
int |
getLowestRecPPEM() |
int |
getMacStyle() |
long |
getMagicNumber() |
Calendar |
getModified() |
int |
getUnitsPerEm() |
float |
getVersion() |
short |
getXMax() |
short |
getXMin() |
short |
getYMax() |
short |
getYMin() |
void |
read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
void |
setCheckSumAdjustment(long checkSumAdjustmentValue) |
void |
setCreated(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(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
public static final String TAG
public static final int MAC_STYLE_BOLD
public static final int MAC_STYLE_ITALIC
public void read(TrueTypeFont ttf, org.apache.fontbox.ttf.TTFDataStream data) throws IOException
ttf
- The font that is being read.data
- The stream to read the data from.IOException
- If there is an error reading the data.public long getCheckSumAdjustment()
public void setCheckSumAdjustment(long checkSumAdjustmentValue)
checkSumAdjustmentValue
- The checkSumAdjustment to set.public Calendar getCreated()
public void setCreated(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 Calendar getModified()
public void setModified(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.Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.