FontMetrics
@Js
const abstract class FontMetrics : Obj
FontMetrics represents font size information for a Font within a specific graphics context.
Get descent of this font which is the distance from baseline to bottom of chars, not including any leading area
Get ascent of this font which is the distance from baseline to top of chars, not including any leading area
Get leading of this font which is the distance above the ascent which may include accents and other marks
Get the width of the string when painted with this font
Get height of this font which is the sum of ascent, descent, and leading
abstract Float ascent()
Get ascent of this font which is the distance from baseline to top of chars, not including any leading area.
abstract Float descent()
Get descent of this font which is the distance from baseline to bottom of chars, not including any leading area.
abstract Float height()
Get height of this font which is the sum of ascent, descent, and leading.
abstract Float leading()
Get leading of this font which is the distance above the ascent which may include accents and other marks.
abstract Float width(Str s)
Get the width of the string when painted with this font.