Skip to main content

register_fonts

Function register_fonts 

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

Register the bundled fonts with the gpui text system. Failure is non-fatal: the theme’s system fallbacks take over (same families the CSS stack names).

Your own fonts go through this same gpui API — add_fonts takes any bytes, and theme::Theme::font_sans / theme::Theme::font_mono name which family the components then paint with.