org.apache.batik.gvt.font
public class GVTGlyphMetrics extends Object
| Constructor Summary | |
|---|---|
| GVTGlyphMetrics(GlyphMetrics gm, float verticalAdvance)
Constructs a new GVTGlyphMetrics object based upon the specified
GlyphMetrics object and an additional vertical advance value.
| |
| GVTGlyphMetrics(float horizontalAdvance, float verticalAdvance, Rectangle2D bounds, byte glyphType)
Constructs a new GVTGlyphMetrics object using the specified parameters.
| |
| Method Summary | |
|---|---|
| Rectangle2D | getBounds2D()
Returns the black box bounds of the glyph. |
| float | getHorizontalAdvance()
Returns the horizontal advance of the glyph. |
| float | getLSB()
Returns the left (top) side bearing of the glyph. |
| float | getRSB()
Returns the right (bottom) side bearing of the glyph. |
| int | getType()
Returns the raw glyph type code. |
| float | getVerticalAdvance()
Returns the vertical advance of the glyph. |
| boolean | isCombining()
Returns true if this is a combining glyph. |
| boolean | isComponent()
Returns true if this is a component glyph. |
| boolean | isLigature()
Returns true if this is a ligature glyph. |
| boolean | isStandard()
Returns true if this is a standard glyph. |
| boolean | isWhitespace()
Returns true if this is a whitespace glyph. |
Parameters: gm The glyph metrics. verticalAdvance The vertical advance of the glyph.
Parameters: horizontalAdvance The horizontal advance of the glyph. verticalAdvance The vertical advance of the glyph. bounds The black box bounds of the glyph. glyphType The type of the glyph.