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
UnsupportedFontException
at 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.int
getTableMajorVersion()
Get the major version of the table.void
stream(Map tables)
void
subsetAndStreamForSWF(Subset subset, Map tables)
-
-
-
Method Detail
-
getTableMajorVersion
public int getTableMajorVersion() throws InvalidFontException
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
public void stream(Map tables)
-
subsetAndStreamForSWF
public void subsetAndStreamForSWF(Subset subset, Map tables) throws InvalidFontException, UnsupportedFontException
-
-