Package org.openpdf.renderer.font.ttf
Class HheaTable
java.lang.Object
org.openpdf.renderer.font.ttf.TrueTypeTable
org.openpdf.renderer.font.ttf.HheaTable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate shortHolds value of property advanceWidthMax.private shortHolds value of property ascent.private shortHolds value of property caretOffset.private shortHolds value of property caretSlopeRise.private shortHolds value of property caretSlopeRun.private shortHolds value of property descent.private shortHolds value of property lineGap.private shortHolds value of property metricDataFormat.private shortHolds value of property minLeftSideBearing.private shortHolds value of property minRightSideBearing.private shortHolds value of property numOfLongHorMetrics.private intHolds value of property version.private shortHolds value of property xMaxExtent.Fields inherited from class org.openpdf.renderer.font.ttf.TrueTypeTable
CMAP_TABLE, GLYF_TABLE, HEAD_TABLE, HHEA_TABLE, HMTX_TABLE, LOCA_TABLE, MAXP_TABLE, NAME_TABLE, POST_TABLE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new instance of HeadTable Makes up reasonable(?) defaults for all values -
Method Summary
Modifier and TypeMethodDescriptionshortGetter for property advanceWidthMax.shortGetter for property ascent.shortGetter for property caretOffset.shortGetter for property caretSlopeRise.shortGetter for property caretSlopeRun.getData()Get the data we have storedshortGetter for property descent.intGet the length of this tableshortGetter for property lineGap.shortGetter for property metricDataFormat.shortGetter for property minLeftSideBearing.shortGetter for property minRIghtSideBearing.intGetter for property numOfLongHorMetrics.intGetter for property version.shortGetter for property xMaxExtent.voidsetAdvanceWidthMax(short advanceWidthMax) Setter for property advanceWidthMax.voidsetAscent(short ascent) Setter for property ascent.voidsetCaretOffset(short caretOffset) Setter for property caretOffset.voidsetCaretSlopeRise(short caretSlopeRise) Setter for property caretSlopeRise.voidsetCaretSlopeRun(short caretSlopeRun) Setter for property caretSlopeRun.voidsetData(ByteBuffer data) Parse the data before it is setvoidsetDescent(short descent) Setter for property descent.voidsetLineGap(short lineGap) Setter for property lineGap.voidsetMetricDataFormat(short metricDataFormat) Setter for property metricDataFormat.voidsetMinLeftSideBearing(short minLeftSideBearing) Setter for property minLeftSideBearing.voidsetMinRightSideBearing(short minRightSideBearing) Setter for property minRIghtSideBearing.voidsetNumOfLongHorMetrics(short numOfLongHorMetrics) Setter for property numOfLongHorMetrics.voidsetVersion(int version) Setter for property version.voidsetXMaxExtent(short xMaxExtent) Setter for property xMaxExtent.toString()Create a pretty stringMethods inherited from class org.openpdf.renderer.font.ttf.TrueTypeTable
createTable, createTable, getTag, stringToTag, tagToString
-
Field Details
-
version
private int versionHolds value of property version. -
ascent
private short ascentHolds value of property ascent. -
descent
private short descentHolds value of property descent. -
lineGap
private short lineGapHolds value of property lineGap. -
advanceWidthMax
private short advanceWidthMaxHolds value of property advanceWidthMax. -
minLeftSideBearing
private short minLeftSideBearingHolds value of property minLeftSideBearing. -
minRightSideBearing
private short minRightSideBearingHolds value of property minRightSideBearing. -
xMaxExtent
private short xMaxExtentHolds value of property xMaxExtent. -
caretSlopeRise
private short caretSlopeRiseHolds value of property caretSlopeRise. -
caretSlopeRun
private short caretSlopeRunHolds value of property caretSlopeRun. -
caretOffset
private short caretOffsetHolds value of property caretOffset. -
metricDataFormat
private short metricDataFormatHolds value of property metricDataFormat. -
numOfLongHorMetrics
private short numOfLongHorMetricsHolds value of property numOfLongHorMetrics.
-
-
Constructor Details
-
HheaTable
protected HheaTable()Creates a new instance of HeadTable Makes up reasonable(?) defaults for all values
-
-
Method Details
-
setData
Parse the data before it is set- Overrides:
setDatain classTrueTypeTable
-
getData
Get the data we have stored- Overrides:
getDatain classTrueTypeTable
-
getLength
public int getLength()Get the length of this table- Overrides:
getLengthin classTrueTypeTable
-
getVersion
public int getVersion()Getter for property version.- Returns:
- Value of property version.
-
setVersion
public void setVersion(int version) Setter for property version.- Parameters:
version- New value of property version.
-
toString
Create a pretty string- Overrides:
toStringin classTrueTypeTable
-
getAscent
public short getAscent()Getter for property ascent.- Returns:
- Value of property ascent.
-
setAscent
public void setAscent(short ascent) Setter for property ascent.- Parameters:
ascent- New value of property ascent.
-
getDescent
public short getDescent()Getter for property descent.- Returns:
- Value of property descent.
-
setDescent
public void setDescent(short descent) Setter for property descent.- Parameters:
descent- New value of property descent.
-
getLineGap
public short getLineGap()Getter for property lineGap.- Returns:
- Value of property lineGap.
-
setLineGap
public void setLineGap(short lineGap) Setter for property lineGap.- Parameters:
lineGap- New value of property lineGap.
-
getAdvanceWidthMax
public short getAdvanceWidthMax()Getter for property advanceWidthMax.- Returns:
- Value of property advanceWidthMax.
-
setAdvanceWidthMax
public void setAdvanceWidthMax(short advanceWidthMax) Setter for property advanceWidthMax.- Parameters:
advanceWidthMax- New value of property advanceWidthMax.
-
getMinLeftSideBearing
public short getMinLeftSideBearing()Getter for property minLeftSideBearing.- Returns:
- Value of property minLeftSideBearing.
-
setMinLeftSideBearing
public void setMinLeftSideBearing(short minLeftSideBearing) Setter for property minLeftSideBearing.- Parameters:
minLeftSideBearing- New value of property minLeftSideBearing.
-
getMinRightSideBearing
public short getMinRightSideBearing()Getter for property minRIghtSideBearing.- Returns:
- Value of property minRIghtSideBearing.
-
setMinRightSideBearing
public void setMinRightSideBearing(short minRightSideBearing) Setter for property minRIghtSideBearing.- Parameters:
minRightSideBearing- New value of property minRIghtSideBearing.
-
getXMaxExtent
public short getXMaxExtent()Getter for property xMaxExtent.- Returns:
- Value of property xMaxExtent.
-
setXMaxExtent
public void setXMaxExtent(short xMaxExtent) Setter for property xMaxExtent.- Parameters:
xMaxExtent- New value of property xMaxExtent.
-
getCaretSlopeRise
public short getCaretSlopeRise()Getter for property caretSlopeRise.- Returns:
- Value of property caretSlopeRise.
-
setCaretSlopeRise
public void setCaretSlopeRise(short caretSlopeRise) Setter for property caretSlopeRise.- Parameters:
caretSlopeRise- New value of property caretSlopeRise.
-
getCaretSlopeRun
public short getCaretSlopeRun()Getter for property caretSlopeRun.- Returns:
- Value of property caretSlopeRun.
-
setCaretSlopeRun
public void setCaretSlopeRun(short caretSlopeRun) Setter for property caretSlopeRun.- Parameters:
caretSlopeRun- New value of property caretSlopeRun.
-
getCaretOffset
public short getCaretOffset()Getter for property caretOffset.- Returns:
- Value of property caretOffset.
-
setCaretOffset
public void setCaretOffset(short caretOffset) Setter for property caretOffset.- Parameters:
caretOffset- New value of property caretOffset.
-
getMetricDataFormat
public short getMetricDataFormat()Getter for property metricDataFormat.- Returns:
- Value of property metricDataFormat.
-
setMetricDataFormat
public void setMetricDataFormat(short metricDataFormat) Setter for property metricDataFormat.- Parameters:
metricDataFormat- New value of property metricDataFormat.
-
getNumOfLongHorMetrics
public int getNumOfLongHorMetrics()Getter for property numOfLongHorMetrics.- Returns:
- Value of property numOfLongHorMetrics.
-
setNumOfLongHorMetrics
public void setNumOfLongHorMetrics(short numOfLongHorMetrics) Setter for property numOfLongHorMetrics.- Parameters:
numOfLongHorMetrics- New value of property numOfLongHorMetrics.
-