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 shortadvanceWidthMaxHolds value of property advanceWidthMax.private shortascentHolds value of property ascent.private shortcaretOffsetHolds value of property caretOffset.private shortcaretSlopeRiseHolds value of property caretSlopeRise.private shortcaretSlopeRunHolds value of property caretSlopeRun.private shortdescentHolds value of property descent.private shortlineGapHolds value of property lineGap.private shortmetricDataFormatHolds value of property metricDataFormat.private shortminLeftSideBearingHolds value of property minLeftSideBearing.private shortminRightSideBearingHolds value of property minRightSideBearing.private shortnumOfLongHorMetricsHolds value of property numOfLongHorMetrics.private intversionHolds value of property version.private shortxMaxExtentHolds 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 protectedHheaTable()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 shortgetAdvanceWidthMax()Getter for property advanceWidthMax.shortgetAscent()Getter for property ascent.shortgetCaretOffset()Getter for property caretOffset.shortgetCaretSlopeRise()Getter for property caretSlopeRise.shortgetCaretSlopeRun()Getter for property caretSlopeRun.java.nio.ByteBuffergetData()Get the data we have storedshortgetDescent()Getter for property descent.intgetLength()Get the length of this tableshortgetLineGap()Getter for property lineGap.shortgetMetricDataFormat()Getter for property metricDataFormat.shortgetMinLeftSideBearing()Getter for property minLeftSideBearing.shortgetMinRightSideBearing()Getter for property minRIghtSideBearing.intgetNumOfLongHorMetrics()Getter for property numOfLongHorMetrics.intgetVersion()Getter for property version.shortgetXMaxExtent()Getter 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(java.nio.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.java.lang.StringtoString()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:
setDatain classTrueTypeTable
-
getData
public java.nio.ByteBuffer 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
public java.lang.String 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.
-
-