public interface FSFontMetrics
| 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. |
default 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() |
default float |
getTypoDescent()
The distance from the baseline to the bottom of the font's em box (its
typographic descent).
|
float |
getUnderlineOffset()
In keeping with the JDK
LineMetrics convention, this number is
positive for values below the baseline. |
float |
getUnderlineThickness() |
float getAscent()
float getDescent()
LineMetrics convention, this number is
positive for values below the baseline.float getStrikethroughOffset()
float getStrikethroughThickness()
float getUnderlineOffset()
LineMetrics convention, this number is
positive for values below the baseline.float getUnderlineThickness()
default float getTypoDescent()
LineMetrics convention. Used for
text-underline-position: under.default float getLineGap()
line-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.
Copyright © 2004–2026. All rights reserved.