org.apache.batik.gvt.font
public class KerningTable extends Object
Constructor Summary | |
---|---|
KerningTable(Kern[] entries)
Creates a KerningTable from an array of Kern entries.
|
Method Summary | |
---|---|
float | getKerningValue(int glyphCode1, int glyphCode2, String glyphUnicode1, String glyphUnicode2)
Returns the amount of kerning that should be added between the given
glyphs. |
Parameters: entries The array of Kern objects that represent the kerning entries for the font that this kerning table belongs to.
Parameters: glyphCode1 The id of the first glyph in the kerning pair glyphCode2 The id of the second glyph in the kerning pair glyphUnicode1 The unicode value of the first glyph in the kerning pair glyphUnicode2 The unicode vlaue of the second glyph in the kerning pair
Returns: The amount of kerning to be added when laying out the glyphs