Class Kern
java.lang.Object
com.adobe.fontengine.font.opentype.Table
com.adobe.fontengine.font.opentype.Kern
Gives access to the 'kern' table.
Version handling
Versioning of 'kern' table is a bit complicated because OpenType defines a format with a minor version number only, and Apple TrueType defines a format with a major/minor version number. This implementation:
- fully supports 0 OpenType tables,
- fully supports 1.0 Apple TrueType 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 TypeMethodDescriptionint[]getKernVector(int leftGid, int rightGid) Get the kerning pair for two glyphs.intGet the major version of the table.voidvoidsubsetAndStreamForSWF(Subset subset, Map tables)
-
Method Details
-
getTableMajorVersion
Get the major version of the table. This is really the minor version for OpenType tables.- Throws:
InvalidFontException
-
getKernVector
public int[] getKernVector(int leftGid, int rightGid) throws InvalidFontException, UnsupportedFontException Get the kerning pair for two glyphs. -
stream
-
subsetAndStreamForSWF
public void subsetAndStreamForSWF(Subset subset, Map tables) throws InvalidFontException, UnsupportedFontException
-