public class LineMetricsAdapter extends Object implements FSFontMetrics
| Constructor and Description |
|---|
LineMetricsAdapter(List<Font> fonts,
String str,
FontRenderContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
float |
getAscent() |
float |
getDescent()
In keeping with the JDK
LineMetrics convention, this number is
positive for values below the baseline. |
float |
getLineGap()
The extra space to leave between consecutive lines (the line gap, also
known as external leading), on top of the ascent and descent reported
here.
|
float |
getStrikethroughOffset() |
float |
getStrikethroughThickness() |
float |
getUnderlineOffset()
In keeping with the JDK
LineMetrics convention, this number is
positive for values below the baseline. |
float |
getUnderlineThickness() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypoDescentpublic LineMetricsAdapter(List<Font> fonts, String str, FontRenderContext ctx)
public float getAscent()
getAscent in interface FSFontMetricspublic float getDescent()
FSFontMetricsLineMetrics convention, this number is
positive for values below the baseline.getDescent in interface FSFontMetricspublic float getStrikethroughOffset()
getStrikethroughOffset in interface FSFontMetricspublic float getStrikethroughThickness()
getStrikethroughThickness in interface FSFontMetricspublic float getUnderlineOffset()
FSFontMetricsLineMetrics convention, this number is
positive for values below the baseline.getUnderlineOffset in interface FSFontMetricspublic float getUnderlineThickness()
getUnderlineThickness in interface FSFontMetricspublic float getLineGap()
FSFontMetricsline-height: normal, so
we do too. Zero when no font asks for one.
Where several fonts are in play the ascent and descent above are the largest of each, which taken together can already be more than any one font asks for a line; this is only what is missing on top of them.
getLineGap in interface FSFontMetricsCopyright © 2004–2026. All rights reserved.