org.apache.fontbox.ttf

Class HeaderTable

public class HeaderTable extends TTFTable

A table in a true type font.

Version: $Revision: 1.1 $

Author: Ben Litchfield (ben@benlitchfield.com)

Field Summary
static StringTAG
Tag to identify this table.
Method Summary
longgetCheckSumAdjustment()
CalendargetCreated()
intgetFlags()
shortgetFontDirectionHint()
floatgetFontRevision()
shortgetGlyphDataFormat()
shortgetIndexToLocFormat()
intgetLowestRecPPEM()
intgetMacStyle()
longgetMagicNumber()
CalendargetModified()
intgetUnitsPerEm()
floatgetVersion()
shortgetXMax()
shortgetXMin()
shortgetYMax()
shortgetYMin()
voidinitData(TrueTypeFont ttf, TTFDataStream data)
This will read the required data from the stream.
voidsetCheckSumAdjustment(long checkSumAdjustmentValue)
voidsetCreated(Calendar createdValue)
voidsetFlags(int flagsValue)
voidsetFontDirectionHint(short fontDirectionHintValue)
voidsetFontRevision(float fontRevisionValue)
voidsetGlyphDataFormat(short glyphDataFormatValue)
voidsetIndexToLocFormat(short indexToLocFormatValue)
voidsetLowestRecPPEM(int lowestRecPPEMValue)
voidsetMacStyle(int macStyleValue)
voidsetMagicNumber(long magicNumberValue)
voidsetModified(Calendar modifiedValue)
voidsetUnitsPerEm(int unitsPerEmValue)
voidsetVersion(float versionValue)
voidsetXMax(short maxValue)
voidsetXMin(short minValue)
voidsetYMax(short maxValue)
voidsetYMin(short minValue)

Field Detail

TAG

public static final String TAG
Tag to identify this table.

Method Detail

getCheckSumAdjustment

public long getCheckSumAdjustment()

Returns: Returns the checkSumAdjustment.

getCreated

public Calendar getCreated()

Returns: Returns the created.

getFlags

public int getFlags()

Returns: Returns the flags.

getFontDirectionHint

public short getFontDirectionHint()

Returns: Returns the fontDirectionHint.

getFontRevision

public float getFontRevision()

Returns: Returns the fontRevision.

getGlyphDataFormat

public short getGlyphDataFormat()

Returns: Returns the glyphDataFormat.

getIndexToLocFormat

public short getIndexToLocFormat()

Returns: Returns the indexToLocFormat.

getLowestRecPPEM

public int getLowestRecPPEM()

Returns: Returns the lowestRecPPEM.

getMacStyle

public int getMacStyle()

Returns: Returns the macStyle.

getMagicNumber

public long getMagicNumber()

Returns: Returns the magicNumber.

getModified

public Calendar getModified()

Returns: Returns the modified.

getUnitsPerEm

public int getUnitsPerEm()

Returns: Returns the unitsPerEm.

getVersion

public float getVersion()

Returns: Returns the version.

getXMax

public short getXMax()

Returns: Returns the xMax.

getXMin

public short getXMin()

Returns: Returns the xMin.

getYMax

public short getYMax()

Returns: Returns the yMax.

getYMin

public short getYMin()

Returns: Returns the yMin.

initData

public void initData(TrueTypeFont ttf, TTFDataStream data)
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.

setCheckSumAdjustment

public void setCheckSumAdjustment(long checkSumAdjustmentValue)

Parameters: checkSumAdjustmentValue The checkSumAdjustment to set.

setCreated

public void setCreated(Calendar createdValue)

Parameters: createdValue The created to set.

setFlags

public void setFlags(int flagsValue)

Parameters: flagsValue The flags to set.

setFontDirectionHint

public void setFontDirectionHint(short fontDirectionHintValue)

Parameters: fontDirectionHintValue The fontDirectionHint to set.

setFontRevision

public void setFontRevision(float fontRevisionValue)

Parameters: fontRevisionValue The fontRevision to set.

setGlyphDataFormat

public void setGlyphDataFormat(short glyphDataFormatValue)

Parameters: glyphDataFormatValue The glyphDataFormat to set.

setIndexToLocFormat

public void setIndexToLocFormat(short indexToLocFormatValue)

Parameters: indexToLocFormatValue The indexToLocFormat to set.

setLowestRecPPEM

public void setLowestRecPPEM(int lowestRecPPEMValue)

Parameters: lowestRecPPEMValue The lowestRecPPEM to set.

setMacStyle

public void setMacStyle(int macStyleValue)

Parameters: macStyleValue The macStyle to set.

setMagicNumber

public void setMagicNumber(long magicNumberValue)

Parameters: magicNumberValue The magicNumber to set.

setModified

public void setModified(Calendar modifiedValue)

Parameters: modifiedValue The modified to set.

setUnitsPerEm

public void setUnitsPerEm(int unitsPerEmValue)

Parameters: unitsPerEmValue The unitsPerEm to set.

setVersion

public void setVersion(float versionValue)

Parameters: versionValue The version to set.

setXMax

public void setXMax(short maxValue)

Parameters: maxValue The xMax to set.

setXMin

public void setXMin(short minValue)

Parameters: minValue The xMin to set.

setYMax

public void setYMax(short maxValue)

Parameters: maxValue The yMax to set.

setYMin

public void setYMin(short minValue)

Parameters: minValue The yMin to set.

Copyright © 2008-2010 Apache Software Foundation. All Rights Reserved.