public class KerningTable
extends java.lang.Object
| Constructor | Description |
|---|---|
KerningTable(Kern[] entries) |
Creates a KerningTable from an array of Kern entries.
|
| Modifier and Type | Method | Description |
|---|---|---|
float |
getKerningValue(int glyphCode1,
int glyphCode2,
java.lang.String glyphUnicode1,
java.lang.String glyphUnicode2) |
Returns the amount of kerning that should be added between the given
glyphs.
|
public KerningTable(Kern[] entries)
entries - The array of Kern objects that represent the kerning
entries for the font that this kerning table belongs to.public float getKerningValue(int glyphCode1,
int glyphCode2,
java.lang.String glyphUnicode1,
java.lang.String glyphUnicode2)
glyphCode1 - The id of the first glyph in the kerning pairglyphCode2 - The id of the second glyph in the kerning pairglyphUnicode1 - The unicode value of the first glyph in
the kerning pairglyphUnicode2 - The unicode vlaue of the second glyph in
the kerning pairCopyright ? 2018 Apache Software Foundation. All Rights Reserved.