The font object

The font object is returned from font_picker type settings, and has the following attributes:

font.baseline_ratio

Returns the position of the baseline within the em box, which is measured from the bottom.

font.fallback_families

Returns the suggested fallback font families.

font.family

Returns the font's name.

font.style

Returns the selected font style.

font.system?

Returns whether the font is a system font. You can use this attribute to identify whether you need to embed the corresponding font-face for the font or not.

font.weight

Returns the selected font weight.

font.variants

Returns all of the variants within the font's family. Each of the variants is also a font object.