register_fonts
- register_fonts(*args, user=True, local=True, default=False)[source]
Register font families. This is called on import.
- Parameters:
*args (path-like, optional) – The font files to add. By default, if positional arguments are passed, then
useris set toFalse. Files must have the extensions.ttfor.otf. See this link for a guide on converting other font files to.ttfand.otf.user (
bool, optional) – Whether to reload fonts fromuser_folder. Default isFalseif positional arguments were passed andTrueotherwise.local (
bool, optional) – Whether to reload fonts fromlocal_folders. Default isFalseif positional arguments were passed andTrueotherwise.default (
bool, default:False) – Whether to reload the default fonts packaged with ultraplot. Default is alwaysFalse.