|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.gvt.font.Kern
public class Kern
The Kern class describes an entry in the "kerning table". It provides a kerning value to be used when laying out characters side by side. It may be used for either horizontal or vertical kerning.
Constructor Summary | |
---|---|
Kern(int[] firstGlyphCodes,
int[] secondGlyphCodes,
UnicodeRange[] firstUnicodeRanges,
UnicodeRange[] secondUnicodeRanges,
float adjustValue)
Creates a Kern object with the given glyph arrays and kerning value. |
Method Summary | |
---|---|
float |
getAdjustValue()
Returns the kerning adjustment value for this kerning entry (a positive value means the space between characters should decrease). |
boolean |
matchesFirstGlyph(int glyphCode,
char glyphUnicode)
Returns true if the specified glyph is one of the glyphs considered as first by this kerning entry. |
boolean |
matchesFirstGlyph(int glyphCode,
String glyphUnicode)
Returns true if the specified glyph is one of the glyphs considered as first by this kerning entry. |
boolean |
matchesSecondGlyph(int glyphCode,
char glyphUnicode)
Returns true if the specified glyph is one of the glyphs considered as second by this kerning entry. |
boolean |
matchesSecondGlyph(int glyphCode,
String glyphUnicode)
Returns true if the specified glyph is one of the glyphs considered as second by this kerning entry. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Kern(int[] firstGlyphCodes, int[] secondGlyphCodes, UnicodeRange[] firstUnicodeRanges, UnicodeRange[] secondUnicodeRanges, float adjustValue)
firstGlyphCodes
- An array of glyph codes that are part of the first
set of glyphs in this kerning entry.secondGlyphCodes
- An array of glyph codes that are part of the
second set of glyphs in this kerning entry.firstUnicodeRanges
- An array of unicode ranges that are part of the
first set of glyphs in this kerning entry.secondUnicodeRanges
- An array of unicode ranges that are part of
the second set of glyphs in this kerning entry.adjustValue
- The kerning adjustment (positive value means the space
between glyphs should decrease).Method Detail |
---|
public boolean matchesFirstGlyph(int glyphCode, String glyphUnicode)
glyphCode
- The id of the glyph to test.glyphUnicode
- The unicode value of the glyph to test.
public boolean matchesFirstGlyph(int glyphCode, char glyphUnicode)
glyphCode
- The id of the glyph to test.glyphUnicode
- The unicode value of the glyph to test.
public boolean matchesSecondGlyph(int glyphCode, String glyphUnicode)
glyphCode
- The id of the glyph to test.glyphUnicode
- The unicode value of the glyph to test.
public boolean matchesSecondGlyph(int glyphCode, char glyphUnicode)
glyphCode
- The id of the glyph to test.glyphUnicode
- The unicode value of the glyph to test.
public float getAdjustValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |