Font support and web font embedding in svglite
mainsvglite uses the systemfonts package for font discovery, allowing access to all installed system fonts, including those registered via register_font(), register_variant(), add_fonts(), or require_font(). It correctly encodes non-standard weights and OpenType features (like ligatures) in the style block.
To ensure SVGs look consistent on systems without the specific fonts installed, you can embed webfont @imports. You can use systemfonts::fonts_as_import() to automatically generate these imports, which can optionally embed the font data directly into the file.