Class Maxp
- java.lang.Object
-
- com.adobe.fontengine.font.opentype.Table
-
- com.adobe.fontengine.font.opentype.Maxp
-
public final class Maxp extends Table
Gives access to the 'maxp' table.Version handling
'maxp' tables have a major/minor version number. This implementation:
- fully supports version 0.5 and 1.0 tables,
- interprets 0.x tables with x > 5 as 0.5 tables
- interprets 1.x tables as 1.0 tables,
- rejects other versions with an
UnsupportedFontException
at construction time.
When some data is not present in the actual version of the table, the accessors return identified values.
Synchronization
Like all tables, these objects are immutable.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxFunctionDefs()
int
getMaxStackElements()
int
getMaxStorage()
int
getMaxTwilightPoints()
int
getNumGlyphs()
Get the number of glyphsint
getTableMajorVersion()
Get the major version of the tableint
getTableMinorVersion()
Get the minor version of the tablevoid
stream(java.util.Map tables)
void
subsetAndStream(Subset subset, java.util.Map tables)
void
subsetAndStreamForCFF(int numGlyphs, 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
-
getNumGlyphs
public int getNumGlyphs() throws InvalidFontException
Get the number of glyphs- Throws:
InvalidFontException
-
getMaxTwilightPoints
public int getMaxTwilightPoints() throws InvalidFontException
- Throws:
InvalidFontException
-
getMaxStorage
public int getMaxStorage() throws InvalidFontException
- Throws:
InvalidFontException
-
getMaxFunctionDefs
public int getMaxFunctionDefs() throws InvalidFontException
- Throws:
InvalidFontException
-
getMaxStackElements
public int getMaxStackElements() throws InvalidFontException
- Throws:
InvalidFontException
-
subsetAndStreamForCFF
public void subsetAndStreamForCFF(int numGlyphs, java.util.Map tables)
-
subsetAndStream
public void subsetAndStream(Subset subset, java.util.Map tables)
-
stream
public void stream(java.util.Map tables)
-
-