public class FontMetrics extends Object
Constructor and Description |
---|
FontMetrics(float maxAscent,
float ascent,
float xheight,
float descent,
float maxDescent,
float leading,
Font font) |
Modifier and Type | Method and Description |
---|---|
float |
computeStringWidth(String string)
Computes the width of the String when rendered with the font represented
by this FontMetrics instance.
|
float |
getAscent() |
int |
getBaseline() |
float |
getDescent() |
Font |
getFont() |
float |
getLeading() |
float |
getLineHeight() |
float |
getMaxAscent() |
float |
getMaxDescent() |
float |
getXheight() |
static FontMetrics |
impl_createFontMetrics(float maxAscent,
float ascent,
float xheight,
float descent,
float maxDescent,
float leading,
Font font) |
String |
toString() |
public FontMetrics(float maxAscent, float ascent, float xheight, float descent, float maxDescent, float leading, Font font)
public static FontMetrics impl_createFontMetrics(float maxAscent, float ascent, float xheight, float descent, float maxDescent, float leading, Font font)
public final float getMaxAscent()
public final float getAscent()
public final float getXheight()
public final int getBaseline()
public final float getDescent()
public final float getMaxDescent()
public final float getLeading()
public final float getLineHeight()
public final Font getFont()
public float computeStringWidth(String string)
Copyright © 2020. All rights reserved.