public class HorizontalHeaderTable extends TTFTable
Modifier and Type | Field and Description |
---|---|
static String |
TAG
A tag that identifies this table type.
|
font, initialized
Modifier and Type | Method and Description |
---|---|
int |
getAdvanceWidthMax() |
short |
getAscender() |
short |
getCaretSlopeRise() |
short |
getCaretSlopeRun() |
short |
getDescender() |
short |
getLineGap() |
short |
getMetricDataFormat() |
short |
getMinLeftSideBearing() |
short |
getMinRightSideBearing() |
int |
getNumberOfHMetrics() |
short |
getReserved1() |
short |
getReserved2() |
short |
getReserved3() |
short |
getReserved4() |
short |
getReserved5() |
float |
getVersion() |
short |
getXMaxExtent() |
void |
read(TrueTypeFont ttf,
org.apache.fontbox.ttf.TTFDataStream data)
This will read the required data from the stream.
|
void |
setAdvanceWidthMax(int advanceWidthMaxValue) |
void |
setAscender(short ascenderValue) |
void |
setCaretSlopeRise(short caretSlopeRiseValue) |
void |
setCaretSlopeRun(short caretSlopeRunValue) |
void |
setDescender(short descenderValue) |
void |
setLineGap(short lineGapValue) |
void |
setMetricDataFormat(short metricDataFormatValue) |
void |
setMinLeftSideBearing(short minLeftSideBearingValue) |
void |
setMinRightSideBearing(short minRightSideBearingValue) |
void |
setNumberOfHMetrics(int numberOfHMetricsValue) |
void |
setReserved1(short reserved1Value) |
void |
setReserved2(short reserved2Value) |
void |
setReserved3(short reserved3Value) |
void |
setReserved4(short reserved4Value) |
void |
setReserved5(short reserved5Value) |
void |
setVersion(float versionValue) |
void |
setXMaxExtent(short maxExtentValue) |
getCheckSum, getInitialized, getLength, getOffset, getTag
public static final String TAG
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 int getAdvanceWidthMax()
public void setAdvanceWidthMax(int advanceWidthMaxValue)
advanceWidthMaxValue
- The advanceWidthMax to set.public short getAscender()
public void setAscender(short ascenderValue)
ascenderValue
- The ascender to set.public short getCaretSlopeRise()
public void setCaretSlopeRise(short caretSlopeRiseValue)
caretSlopeRiseValue
- The caretSlopeRise to set.public short getCaretSlopeRun()
public void setCaretSlopeRun(short caretSlopeRunValue)
caretSlopeRunValue
- The caretSlopeRun to set.public short getDescender()
public void setDescender(short descenderValue)
descenderValue
- The descender to set.public short getLineGap()
public void setLineGap(short lineGapValue)
lineGapValue
- The lineGap to set.public short getMetricDataFormat()
public void setMetricDataFormat(short metricDataFormatValue)
metricDataFormatValue
- The metricDataFormat to set.public short getMinLeftSideBearing()
public void setMinLeftSideBearing(short minLeftSideBearingValue)
minLeftSideBearingValue
- The minLeftSideBearing to set.public short getMinRightSideBearing()
public void setMinRightSideBearing(short minRightSideBearingValue)
minRightSideBearingValue
- The minRightSideBearing to set.public int getNumberOfHMetrics()
public void setNumberOfHMetrics(int numberOfHMetricsValue)
numberOfHMetricsValue
- The numberOfHMetrics to set.public short getReserved1()
public void setReserved1(short reserved1Value)
reserved1Value
- The reserved1 to set.public short getReserved2()
public void setReserved2(short reserved2Value)
reserved2Value
- The reserved2 to set.public short getReserved3()
public void setReserved3(short reserved3Value)
reserved3Value
- The reserved3 to set.public short getReserved4()
public void setReserved4(short reserved4Value)
reserved4Value
- The reserved4 to set.public short getReserved5()
public void setReserved5(short reserved5Value)
reserved5Value
- The reserved5 to set.public float getVersion()
public void setVersion(float versionValue)
versionValue
- The version to set.public short getXMaxExtent()
public void setXMaxExtent(short maxExtentValue)
maxExtentValue
- The xMaxExtent to set.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.