Package com.mta.tehreer.sfnt.tables
Class HheaTable
java.lang.Object
com.mta.tehreer.sfnt.tables.HheaTable
Represents an OpenType `hhea' table.
-
Constructor Details
-
HheaTable
Constructs aHheaTable
object from the specified typeface.- Parameters:
typeface
- The typeface from which theHheaTable
object is constructed.- Throws:
NullPointerException
- iftypeface
isnull
.RuntimeException
- iftypeface
does not contain `hhea' table.
-
-
Method Details
-
from
Constructs aHheaTable
object from the specified typeface.- Parameters:
typeface
- The typeface from which theHheaTable
object is constructed.- Returns:
- A new
HheaTable
object, ornull
if `hhea' table does not exist in the specified typeface. - Throws:
NullPointerException
- iftypeface
isnull
.
-
version
public int version() -
ascender
public short ascender() -
descender
public short descender() -
lineGap
public short lineGap() -
advanceWidthMax
public int advanceWidthMax() -
minLeftSideBearing
public short minLeftSideBearing() -
minRightSideBearing
public short minRightSideBearing() -
xMaxExtent
public short xMaxExtent() -
caretSlopeRise
public short caretSlopeRise() -
caretSlopeRun
public short caretSlopeRun() -
caretOffset
public short caretOffset() -
metricDataFormat
public short metricDataFormat() -
numberOfHMetrics
public int numberOfHMetrics()
-