Class Head
- java.lang.Object
-
- com.adobe.fontengine.font.opentype.Table
-
- com.adobe.fontengine.font.opentype.Head
-
public final class Head extends Table
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RectgetFontBBox()Get the font bbox.intgetIndexToLocFormat()Get the indexToLocFormat.intgetTableMajorVersion()Get the major version.intgetTableMinorVersion()Get the minor version.intgetUnitsPerEm()Get the units per em.intgetXMax()Get the xMax.intgetXMin()Get the xMin.intgetYMax()Get the yMax.intgetYMin()Get the yMin.booleanisConverted()Get the flags bit 12: "Font converted (produce compatible metrics)"static booleanisFontHeaderValidationRequired()booleanisItalic()Get the italic macStyle.static voidsetFontHeaderValidationRequired(boolean fontHeaderValidationRequired)com.adobe.fontengine.font.opentype.OTByteArray.OTByteArrayBuilderstream(Map tables)com.adobe.fontengine.font.opentype.OTByteArray.OTByteArrayBuildersubsetAndStream(Subset subset, Map tables)
-
-
-
Method Detail
-
isFontHeaderValidationRequired
public static boolean isFontHeaderValidationRequired()
-
setFontHeaderValidationRequired
public static void setFontHeaderValidationRequired(boolean fontHeaderValidationRequired)
-
getTableMajorVersion
public int getTableMajorVersion() throws InvalidFontExceptionGet the major version.- Throws:
InvalidFontException
-
getTableMinorVersion
public int getTableMinorVersion() throws InvalidFontExceptionGet the minor version.- Throws:
InvalidFontException
-
isConverted
public boolean isConverted() throws InvalidFontExceptionGet the flags bit 12: "Font converted (produce compatible metrics)"- Throws:
InvalidFontException
-
getUnitsPerEm
public int getUnitsPerEm() throws InvalidFontExceptionGet the units per em.- Throws:
InvalidFontException
-
getIndexToLocFormat
public int getIndexToLocFormat() throws InvalidFontExceptionGet the indexToLocFormat.- Throws:
InvalidFontException
-
isItalic
public boolean isItalic() throws InvalidFontExceptionGet the italic macStyle.- Throws:
InvalidFontException
-
getXMin
public int getXMin() throws InvalidFontExceptionGet the xMin.- Throws:
InvalidFontException
-
getYMin
public int getYMin() throws InvalidFontExceptionGet the yMin.- Throws:
InvalidFontException
-
getXMax
public int getXMax() throws InvalidFontExceptionGet the xMax.- Throws:
InvalidFontException
-
getYMax
public int getYMax() throws InvalidFontExceptionGet the yMax.- Throws:
InvalidFontException
-
getFontBBox
public Rect getFontBBox() throws InvalidFontException
Get the font bbox.- Throws:
InvalidFontException
-
subsetAndStream
public com.adobe.fontengine.font.opentype.OTByteArray.OTByteArrayBuilder subsetAndStream(Subset subset, Map tables)
-
stream
public com.adobe.fontengine.font.opentype.OTByteArray.OTByteArrayBuilder stream(Map tables)
-
-