| java.lang.Object org.apache.batik.gvt.font.Kern
Kern | public class Kern (Code) | | 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.
author: Dean Jackson version: $Id: Kern.java 475685 2006-11-16 11:16:05Z cam $ |
Constructor Summary | |
public | 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 | |
public float | getAdjustValue() Returns the kerning adjustment value for this kerning entry (a positive
value means the space between characters should decrease). | public boolean | matchesFirstGlyph(int glyphCode, String glyphUnicode) Returns true if the specified glyph is one of the glyphs considered
as first by this kerning entry. | public boolean | matchesFirstGlyph(int glyphCode, char glyphUnicode) Returns true if the specified glyph is one of the glyphs considered
as first by this kerning entry. | public boolean | matchesSecondGlyph(int glyphCode, String glyphUnicode) Returns true if the specified glyph is one of the glyphs considered
as second by this kerning entry. | public boolean | matchesSecondGlyph(int glyphCode, char glyphUnicode) Returns true if the specified glyph is one of the glyphs considered
as second by this kerning entry. |
Kern | public Kern(int[] firstGlyphCodes, int[] secondGlyphCodes, UnicodeRange[] firstUnicodeRanges, UnicodeRange[] secondUnicodeRanges, float adjustValue)(Code) | | Creates a Kern object with the given glyph arrays
and kerning value. The first and second sets of glyphs for this kerning
entry consist of the union of glyphs in the glyph code arrays and the
unicode ranges.
Parameters: firstGlyphCodes - An array of glyph codes that are part of the firstset of glyphs in this kerning entry. Parameters: secondGlyphCodes - An array of glyph codes that are part of thesecond set of glyphs in this kerning entry. Parameters: firstUnicodeRanges - An array of unicode ranges that are part of thefirst set of glyphs in this kerning entry. Parameters: secondUnicodeRanges - An array of unicode ranges that are part ofthe second set of glyphs in this kerning entry. Parameters: adjustValue - The kerning adjustment (positive value means the spacebetween glyphs should decrease). |
getAdjustValue | public float getAdjustValue()(Code) | | Returns the kerning adjustment value for this kerning entry (a positive
value means the space between characters should decrease).
The kerning adjustment for this kerning entry. |
matchesFirstGlyph | public boolean matchesFirstGlyph(int glyphCode, String glyphUnicode)(Code) | | Returns true if the specified glyph is one of the glyphs considered
as first by this kerning entry. Returns false otherwise.
Parameters: glyphCode - The id of the glyph to test. Parameters: glyphUnicode - The unicode value of the glyph to test. True if this glyph is in the list of first glyphs forthe kerning entry |
matchesFirstGlyph | public boolean matchesFirstGlyph(int glyphCode, char glyphUnicode)(Code) | | Returns true if the specified glyph is one of the glyphs considered
as first by this kerning entry. Returns false otherwise.
Parameters: glyphCode - The id of the glyph to test. Parameters: glyphUnicode - The unicode value of the glyph to test. True if this glyph is in the list of first glyphs forthe kerning entry |
matchesSecondGlyph | public boolean matchesSecondGlyph(int glyphCode, String glyphUnicode)(Code) | | Returns true if the specified glyph is one of the glyphs considered
as second by this kerning entry. Returns false otherwise.
Parameters: glyphCode - The id of the glyph to test. Parameters: glyphUnicode - The unicode value of the glyph to test. True if this glyph is in the list of second glyphs for thekerning entry |
matchesSecondGlyph | public boolean matchesSecondGlyph(int glyphCode, char glyphUnicode)(Code) | | Returns true if the specified glyph is one of the glyphs considered
as second by this kerning entry. Returns false otherwise.
Parameters: glyphCode - The id of the glyph to test. Parameters: glyphUnicode - The unicode value of the glyph to test. True if this glyph is in the list of second glyphs for thekerning entry |
|
|