Class Head
java.lang.Object
com.adobe.fontengine.font.opentype.Table
com.adobe.fontengine.font.opentype.Head
Gives access to the 'head' table.
Version handling
'head' 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
Modifier and TypeMethodDescriptionGet the font bbox.intGet the indexToLocFormat.intGet the major version.intGet the minor version.intGet the units per em.intgetXMax()Get the xMax.intgetXMin()Get the xMin.intgetYMax()Get the yMax.intgetYMin()Get the yMin.booleanGet the flags bit 12: "Font converted (produce compatible metrics)"static booleanbooleanisItalic()Get the italic macStyle.static voidsetFontHeaderValidationRequired(boolean fontHeaderValidationRequired) com.adobe.fontengine.font.opentype.OTByteArray.OTByteArrayBuildercom.adobe.fontengine.font.opentype.OTByteArray.OTByteArrayBuildersubsetAndStream(Subset subset, Map tables)
-
Method Details
-
isFontHeaderValidationRequired
public static boolean isFontHeaderValidationRequired() -
setFontHeaderValidationRequired
public static void setFontHeaderValidationRequired(boolean fontHeaderValidationRequired) -
getTableMajorVersion
Get the major version.- Throws:
InvalidFontException
-
getTableMinorVersion
Get the minor version.- Throws:
InvalidFontException
-
isConverted
Get the flags bit 12: "Font converted (produce compatible metrics)"- Throws:
InvalidFontException
-
getUnitsPerEm
Get the units per em.- Throws:
InvalidFontException
-
getIndexToLocFormat
Get the indexToLocFormat.- Throws:
InvalidFontException
-
isItalic
Get the italic macStyle.- Throws:
InvalidFontException
-
getXMin
Get the xMin.- Throws:
InvalidFontException
-
getYMin
Get the yMin.- Throws:
InvalidFontException
-
getXMax
Get the xMax.- Throws:
InvalidFontException
-
getYMax
Get the yMax.- Throws:
InvalidFontException
-
getFontBBox
Get the font bbox.- Throws:
InvalidFontException
-
subsetAndStream
-
stream
-