Class Kern
- java.lang.Object
-
- com.adobe.fontengine.font.opentype.Table
-
- com.adobe.fontengine.font.opentype.Kern
-
public final class Kern extends Table
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]getKernVector(int leftGid, int rightGid)Get the kerning pair for two glyphs.intgetTableMajorVersion()Get the major version of the table.voidstream(java.util.Map tables)voidsubsetAndStreamForSWF(Subset subset, java.util.Map tables)
-
-
-
Method Detail
-
getTableMajorVersion
public int getTableMajorVersion() throws InvalidFontExceptionGet 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, UnsupportedFontExceptionGet the kerning pair for two glyphs.
-
stream
public void stream(java.util.Map tables)
-
subsetAndStreamForSWF
public void subsetAndStreamForSWF(Subset subset, java.util.Map tables) throws InvalidFontException, UnsupportedFontException
-
-