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
UnsupportedFontException
at 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 Rect
getFontBBox()
Get the font bbox.int
getIndexToLocFormat()
Get the indexToLocFormat.int
getTableMajorVersion()
Get the major version.int
getTableMinorVersion()
Get the minor version.int
getUnitsPerEm()
Get the units per em.int
getXMax()
Get the xMax.int
getXMin()
Get the xMin.int
getYMax()
Get the yMax.int
getYMin()
Get the yMin.boolean
isConverted()
Get the flags bit 12: "Font converted (produce compatible metrics)"static boolean
isFontHeaderValidationRequired()
boolean
isItalic()
Get the italic macStyle.static void
setFontHeaderValidationRequired(boolean fontHeaderValidationRequired)
com.adobe.fontengine.font.opentype.OTByteArray.OTByteArrayBuilder
stream(java.util.Map tables)
com.adobe.fontengine.font.opentype.OTByteArray.OTByteArrayBuilder
subsetAndStream(Subset subset, java.util.Map tables)
-
-
-
Method Detail
-
isFontHeaderValidationRequired
public static boolean isFontHeaderValidationRequired()
-
setFontHeaderValidationRequired
public static void setFontHeaderValidationRequired(boolean fontHeaderValidationRequired)
-
getTableMajorVersion
public int getTableMajorVersion() throws InvalidFontException
Get the major version.- Throws:
InvalidFontException
-
getTableMinorVersion
public int getTableMinorVersion() throws InvalidFontException
Get the minor version.- Throws:
InvalidFontException
-
isConverted
public boolean isConverted() throws InvalidFontException
Get the flags bit 12: "Font converted (produce compatible metrics)"- Throws:
InvalidFontException
-
getUnitsPerEm
public int getUnitsPerEm() throws InvalidFontException
Get the units per em.- Throws:
InvalidFontException
-
getIndexToLocFormat
public int getIndexToLocFormat() throws InvalidFontException
Get the indexToLocFormat.- Throws:
InvalidFontException
-
isItalic
public boolean isItalic() throws InvalidFontException
Get the italic macStyle.- Throws:
InvalidFontException
-
getXMin
public int getXMin() throws InvalidFontException
Get the xMin.- Throws:
InvalidFontException
-
getYMin
public int getYMin() throws InvalidFontException
Get the yMin.- Throws:
InvalidFontException
-
getXMax
public int getXMax() throws InvalidFontException
Get the xMax.- Throws:
InvalidFontException
-
getYMax
public int getYMax() throws InvalidFontException
Get 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, java.util.Map tables)
-
stream
public com.adobe.fontengine.font.opentype.OTByteArray.OTByteArrayBuilder stream(java.util.Map tables)
-
-