const class graphics::FontMetrics

sys::Obj
  graphics::FontMetrics

@Js

Source

FontMetrics represents font size information for a specific Font and DeviceContext.

ascent

Float ascent()

Source

Get ascent of this font which is the distance from baseline to top of chars, not including any leading area.

descent

Float descent()

Source

Get descent of this font which is the distance from baseline to bottom of chars, not including any leading area.

height

Float height()

Source

Get height of this font which is the sum of ascent, descent, and leading.

leading

Float leading()

Source

Get leading of this font which is the distance above the ascent which may include accents and other marks.

width

Float width(Str s)

Source

Get the width of the string when painted with this font.