Class Maxp
java.lang.Object
com.adobe.fontengine.font.opentype.Table
com.adobe.fontengine.font.opentype.Maxp
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
Modifier and TypeMethodDescriptionintintintintintGet the number of glyphsintGet the major version of the tableintGet the minor version of the tablevoidvoidsubsetAndStream(Subset subset, Map tables) voidsubsetAndStreamForCFF(int numGlyphs, Map tables)
-
Method Details
-
getTableMajorVersion
Get the major version of the table- Throws:
InvalidFontException
-
getTableMinorVersion
Get the minor version of the table- Throws:
InvalidFontException
-
getNumGlyphs
Get the number of glyphs- Throws:
InvalidFontException
-
getMaxTwilightPoints
- Throws:
InvalidFontException
-
getMaxStorage
- Throws:
InvalidFontException
-
getMaxFunctionDefs
- Throws:
InvalidFontException
-
getMaxStackElements
- Throws:
InvalidFontException
-
subsetAndStreamForCFF
-
subsetAndStream
-
stream
-