% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fonts.R
\name{register_font}
\alias{register_font}
\title{Register a local font file for embedding}
\usage{
register_font(font_path, family = NULL)
}
\arguments{
\item{font_path}{Path to a local .ttf or .woff2 font file}

\item{family}{Font family name to register (e.g., "Jost"). If NULL,
the filename without extension is used.}
}
\value{
Path to the cached font file (invisible)
}
\description{
Copies a local font file (TTF or WOFF2) to the cardargus cache directory
so it can be embedded in SVG exports.
}
