public class GVTGlyphMetrics extends Object
Constructor and Description |
---|
GVTGlyphMetrics(float horizontalAdvance,
float verticalAdvance,
Rectangle2D bounds,
byte glyphType)
Constructs a new GVTGlyphMetrics object using the specified parameters.
|
GVTGlyphMetrics(GlyphMetrics gm,
float verticalAdvance)
Constructs a new GVTGlyphMetrics object based upon the specified
GlyphMetrics object and an additional vertical advance value.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public GVTGlyphMetrics(GlyphMetrics gm, float verticalAdvance)
gm
- The glyph metrics.verticalAdvance
- The vertical advance of the glyph.public GVTGlyphMetrics(float horizontalAdvance, float verticalAdvance, Rectangle2D bounds, byte glyphType)
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.public float getHorizontalAdvance()
public float getVerticalAdvance()
public Rectangle2D getBounds2D()
public float getLSB()
public float getRSB()
public int getType()
public boolean isCombining()
public boolean isComponent()
public boolean isLigature()
public boolean isStandard()
public boolean isWhitespace()
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.