Class Hhea
- java.lang.Object
-
- com.adobe.fontengine.font.opentype.Table
-
- com.adobe.fontengine.font.opentype.Hhea
-
public final class Hhea extends Table
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAscender()Get the Ascender.intgetDescender()Get the Descender.intgetLineGap()Get the LineGap.intgetNumberOfHMetrics()Get the number of hMetrics.intgetRise()Get the caretSlopeRise.intgetRun()Get the caretSlopeRun.intgetTableMajorVersion()Get the major version of the table.intgetTableMinorVersion()Get the minor version of the table.voidstream(java.util.Map tables)voidsubsetAndStream(Subset subset, java.util.Map tables)
-
-
-
Method Detail
-
getTableMajorVersion
public int getTableMajorVersion() throws InvalidFontExceptionGet the major version of the table.- Throws:
InvalidFontException
-
getTableMinorVersion
public int getTableMinorVersion() throws InvalidFontExceptionGet the minor version of the table.- Throws:
InvalidFontException
-
getNumberOfHMetrics
public int getNumberOfHMetrics() throws InvalidFontExceptionGet the number of hMetrics.- Throws:
InvalidFontException
-
getRise
public int getRise() throws InvalidFontExceptionGet the caretSlopeRise.- Throws:
InvalidFontException
-
getRun
public int getRun() throws InvalidFontExceptionGet the caretSlopeRun.- Throws:
InvalidFontException
-
getAscender
public int getAscender() throws InvalidFontExceptionGet the Ascender.- Throws:
InvalidFontException
-
getDescender
public int getDescender() throws InvalidFontExceptionGet the Descender.- Throws:
InvalidFontException
-
getLineGap
public int getLineGap() throws InvalidFontExceptionGet the LineGap.- Throws:
InvalidFontException
-
subsetAndStream
public void subsetAndStream(Subset subset, java.util.Map tables)
-
stream
public void stream(java.util.Map tables)
-
-