The font object
The font
object is used to access the font_picker
settings. It can be accessed via the global settings
object. The font
object has the following attributes:
font.baseline_ratio
Returns the position of the baseline within the em box (measured from the bottom). You can learn more about baseline ratios in the Plumber SASS documentation.
Input
{{ settings.heading_font.baseline_ratio }}
Output
0.091
font.fallback_families
Returns the suggested fallback font families.
Input
{{ settings.heading_font.fallback_families }}
Output
sans-serif
font.family
Returns the font's name.
Input
{{ settings.heading_font.family }}
Output
"Neue Haas Unica"
font.style
Returns the selected font style.
Input
{{ settings.heading_font.style }}
Output
normal
font.weight
Returns the selected font weight.
Input
{{ settings.heading_font.weight }}
Output
400
font.variants
Returns all of the variants within the font's family. Each of the variants is also a font
object.
{% for variant in settings.heading_font.variants %}
{{ variant.family }}
{% endfor %}