Package com.sun.pdfview.font.ttf
Class HheaTable
- java.lang.Object
-
- com.sun.pdfview.font.ttf.TrueTypeTable
-
- com.sun.pdfview.font.ttf.HheaTable
-
public class HheaTable extends TrueTypeTable
-
-
Field Summary
Fields Modifier and Type Field Description private short
advanceWidthMax
Holds value of property advanceWidthMax.private short
ascent
Holds value of property ascent.private short
caretOffset
Holds value of property caretOffset.private short
caretSlopeRise
Holds value of property caretSlopeRise.private short
caretSlopeRun
Holds value of property caretSlopeRun.private short
descent
Holds value of property descent.private short
lineGap
Holds value of property lineGap.private short
metricDataFormat
Holds value of property metricDataFormat.private short
minLeftSideBearing
Holds value of property minLeftSideBearing.private short
minRightSideBearing
Holds value of property minRightSideBearing.private short
numOfLongHorMetrics
Holds value of property numOfLongHorMetrics.private int
version
Holds value of property version.private short
xMaxExtent
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
Constructors Modifier Constructor Description protected
HheaTable()
Creates a new instance of HeadTable Makes up reasonable(?) defaults for all values
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description short
getAdvanceWidthMax()
Getter for property advanceWidthMax.short
getAscent()
Getter for property ascent.short
getCaretOffset()
Getter for property caretOffset.short
getCaretSlopeRise()
Getter for property caretSlopeRise.short
getCaretSlopeRun()
Getter for property caretSlopeRun.java.nio.ByteBuffer
getData()
Get the data we have storedshort
getDescent()
Getter for property descent.int
getLength()
Get the length of this tableshort
getLineGap()
Getter for property lineGap.short
getMetricDataFormat()
Getter for property metricDataFormat.short
getMinLeftSideBearing()
Getter for property minLeftSideBearing.short
getMinRightSideBearing()
Getter for property minRIghtSideBearing.int
getNumOfLongHorMetrics()
Getter for property numOfLongHorMetrics.int
getVersion()
Getter for property version.short
getXMaxExtent()
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(java.nio.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.java.lang.String
toString()
Create a pretty string-
Methods inherited from class com.sun.pdfview.font.ttf.TrueTypeTable
createTable, createTable, getTag, stringToTag, tagToString
-
-
-
-
Field Detail
-
version
private int version
Holds value of property version.
-
ascent
private short ascent
Holds value of property ascent.
-
descent
private short descent
Holds value of property descent.
-
lineGap
private short lineGap
Holds value of property lineGap.
-
advanceWidthMax
private short advanceWidthMax
Holds value of property advanceWidthMax.
-
minLeftSideBearing
private short minLeftSideBearing
Holds value of property minLeftSideBearing.
-
minRightSideBearing
private short minRightSideBearing
Holds value of property minRightSideBearing.
-
xMaxExtent
private short xMaxExtent
Holds value of property xMaxExtent.
-
caretSlopeRise
private short caretSlopeRise
Holds value of property caretSlopeRise.
-
caretSlopeRun
private short caretSlopeRun
Holds value of property caretSlopeRun.
-
caretOffset
private short caretOffset
Holds value of property caretOffset.
-
metricDataFormat
private short metricDataFormat
Holds value of property metricDataFormat.
-
numOfLongHorMetrics
private short numOfLongHorMetrics
Holds value of property numOfLongHorMetrics.
-
-
Method Detail
-
setData
public void setData(java.nio.ByteBuffer data)
Parse the data before it is set- Overrides:
setData
in classTrueTypeTable
-
getData
public java.nio.ByteBuffer 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
public java.lang.String 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.
-
-