Skip to main content

CERTIFICATE_FONTS

Constant CERTIFICATE_FONTS 

Source
pub const CERTIFICATE_FONTS: &[(&str, &str, &[u8])];
Expand description

Certificate fonts as (display_name, file_path, bytes). seed_certificate_fonts registers the DB rows and seed_file_storage uploads the bytes, both iterating this list.

Inter Variable is the default (see certificates::TextToRender) and covers Latin, Cyrillic and Greek. The Noto Sans fonts extend coverage to scripts Inter lacks; the renderer resolves each text to the single loaded font that covers it (see certificates::resolve_font_family) rather than relying on usvg’s per-glyph fallback.