Skip to main content

register_fonts

Function register_fonts 

Source
pub fn register_fonts(cx: &App) -> Result<()>
Expand description

Register the bundled fonts through fonts::add. Failure is non-fatal: the theme’s system fallbacks take over (same families the CSS stack names). With no geist-* feature on, it registers nothing and returns Ok.

Your own fonts go through fonts::add too, and theme::Theme::font_sans / theme::Theme::font_mono name which family the components then paint with.