Class Hhea
java.lang.Object
com.adobe.fontengine.font.opentype.Table
com.adobe.fontengine.font.opentype.Hhea
Gives access to the 'hhea' table.
Version handling
'hhea' tables have a major/minor version number. This implementation:
- fully supports version 1.0 tables,
- interprets 1.x tables as 1.0 tables,
- rejects other versions with an
UnsupportedFontExceptionat construction time.
Synchronization
Like all tables, these objects are immutable.
-
Method Summary
Modifier and TypeMethodDescriptionintGet the Ascender.intGet the Descender.intGet the LineGap.intGet the number of hMetrics.intgetRise()Get the caretSlopeRise.intgetRun()Get the caretSlopeRun.intGet the major version of the table.intGet the minor version of the table.voidvoidsubsetAndStream(Subset subset, Map tables)
-
Method Details
-
getTableMajorVersion
Get the major version of the table.- Throws:
InvalidFontException
-
getTableMinorVersion
Get the minor version of the table.- Throws:
InvalidFontException
-
getNumberOfHMetrics
Get the number of hMetrics.- Throws:
InvalidFontException
-
getRise
Get the caretSlopeRise.- Throws:
InvalidFontException
-
getRun
Get the caretSlopeRun.- Throws:
InvalidFontException
-
getAscender
Get the Ascender.- Throws:
InvalidFontException
-
getDescender
Get the Descender.- Throws:
InvalidFontException
-
getLineGap
Get the LineGap.- Throws:
InvalidFontException
-
subsetAndStream
-
stream
-