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