Package com.sun.pdfview.font.ttf
Class HheaTable
java.lang.Object
com.sun.pdfview.font.ttf.TrueTypeTable
com.sun.pdfview.font.ttf.HheaTable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate short
Holds value of property advanceWidthMax.private short
Holds value of property ascent.private short
Holds value of property caretOffset.private short
Holds value of property caretSlopeRise.private short
Holds value of property caretSlopeRun.private short
Holds value of property descent.private short
Holds value of property lineGap.private short
Holds value of property metricDataFormat.private short
Holds value of property minLeftSideBearing.private short
Holds value of property minRightSideBearing.private short
Holds value of property numOfLongHorMetrics.private int
Holds value of property version.private short
Holds value of property xMaxExtent.Fields inherited from class com.sun.pdfview.font.ttf.TrueTypeTable
CMAP_TABLE, GLYF_TABLE, HEAD_TABLE, HHEA_TABLE, HMTX_TABLE, LOCA_TABLE, MAXP_TABLE, NAME_TABLE, POST_TABLE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a new instance of HeadTable Makes up reasonable(?) defaults for all values -
Method Summary
Modifier and TypeMethodDescriptionshort
Getter for property advanceWidthMax.short
Getter for property ascent.short
Getter for property caretOffset.short
Getter for property caretSlopeRise.short
Getter for property caretSlopeRun.getData()
Get the data we have storedshort
Getter for property descent.int
Get the length of this tableshort
Getter for property lineGap.short
Getter for property metricDataFormat.short
Getter for property minLeftSideBearing.short
Getter for property minRIghtSideBearing.int
Getter for property numOfLongHorMetrics.int
Getter for property version.short
Getter for property xMaxExtent.void
setAdvanceWidthMax
(short advanceWidthMax) Setter for property advanceWidthMax.void
setAscent
(short ascent) Setter for property ascent.void
setCaretOffset
(short caretOffset) Setter for property caretOffset.void
setCaretSlopeRise
(short caretSlopeRise) Setter for property caretSlopeRise.void
setCaretSlopeRun
(short caretSlopeRun) Setter for property caretSlopeRun.void
setData
(ByteBuffer data) Parse the data before it is setvoid
setDescent
(short descent) Setter for property descent.void
setLineGap
(short lineGap) Setter for property lineGap.void
setMetricDataFormat
(short metricDataFormat) Setter for property metricDataFormat.void
setMinLeftSideBearing
(short minLeftSideBearing) Setter for property minLeftSideBearing.void
setMinRightSideBearing
(short minRightSideBearing) Setter for property minRIghtSideBearing.void
setNumOfLongHorMetrics
(short numOfLongHorMetrics) Setter for property numOfLongHorMetrics.void
setVersion
(int version) Setter for property version.void
setXMaxExtent
(short xMaxExtent) Setter for property xMaxExtent.toString()
Create a pretty stringMethods inherited from class com.sun.pdfview.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:
setData
in classTrueTypeTable
-
getData
Get the data we have stored- Overrides:
getData
in classTrueTypeTable
-
getLength
public int getLength()Get the length of this table- Overrides:
getLength
in 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:
toString
in 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.
-