sf_set_custom_font()
, can be used to apply a custom font
on all elements and fonts of any ggplot2::themes()
font_family
parameters of the themes can be used to set the entire
font family of the theme.scale
parameter is now called size_class
font_size_scale
→ font_size_class
element_size_scale
→ element_size_class
sf_set_inter()
is now working, and it can be used to change other theme's
font and family as welltheme_sf_light()
and theme_sf_dark()
alongside 9 different color palettes, each offering a complementary accessible variant. Inter is set as the default typeface of the package while we resolve some issues around full integration of SF Pro.sf_set_sf_pro()
and sf_set_inter()
are not working as intendedextrafont
only importing .ttf
files,
therefore, missing some of the weights.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.