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
UnsupportedFontException
at construction time.
Synchronization
Like all tables, these objects are immutable.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAscender()
Get the Ascender.int
getDescender()
Get the Descender.int
getLineGap()
Get the LineGap.int
getNumberOfHMetrics()
Get the number of hMetrics.int
getRise()
Get the caretSlopeRise.int
getRun()
Get the caretSlopeRun.int
getTableMajorVersion()
Get the major version of the table.int
getTableMinorVersion()
Get the minor version of the table.void
stream(java.util.Map tables)
void
subsetAndStream(Subset subset, java.util.Map tables)
-
-
-
Method Detail
-
getTableMajorVersion
public int getTableMajorVersion() throws InvalidFontException
Get the major version of the table.- Throws:
InvalidFontException
-
getTableMinorVersion
public int getTableMinorVersion() throws InvalidFontException
Get the minor version of the table.- Throws:
InvalidFontException
-
getNumberOfHMetrics
public int getNumberOfHMetrics() throws InvalidFontException
Get the number of hMetrics.- Throws:
InvalidFontException
-
getRise
public int getRise() throws InvalidFontException
Get the caretSlopeRise.- Throws:
InvalidFontException
-
getRun
public int getRun() throws InvalidFontException
Get the caretSlopeRun.- Throws:
InvalidFontException
-
getAscender
public int getAscender() throws InvalidFontException
Get the Ascender.- Throws:
InvalidFontException
-
getDescender
public int getDescender() throws InvalidFontException
Get the Descender.- Throws:
InvalidFontException
-
getLineGap
public int getLineGap() throws InvalidFontException
Get the LineGap.- Throws:
InvalidFontException
-
subsetAndStream
public void subsetAndStream(Subset subset, java.util.Map tables)
-
stream
public void stream(java.util.Map tables)
-
-