register_font: Register a local font file for embedding
Description
Copies a local font file (TTF or WOFF2) to the cardargus cache directory
so it can be embedded in SVG exports.
Usage
register_font(font_path, family = NULL)
Value
Path to the cached font file (invisible)
Arguments
- font_path
Path to a local .ttf or .woff2 font file
- family
Font family name to register (e.g., "Jost"). If NULL,
the filename without extension is used.