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
UnsupportedFontExceptionat 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 intgetMaxFunctionDefs()intgetMaxStackElements()intgetMaxStorage()intgetMaxTwilightPoints()intgetNumGlyphs()Get the number of glyphsintgetTableMajorVersion()Get the major version of the tableintgetTableMinorVersion()Get the minor version of the tablevoidstream(java.util.Map tables)voidsubsetAndStream(Subset subset, java.util.Map tables)voidsubsetAndStreamForCFF(int numGlyphs, 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
-
getNumGlyphs
public int getNumGlyphs() throws InvalidFontExceptionGet 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)
-
-