register_fonts¶
- register_fonts(*args, user=True, default=False)[source]¶
Register font names.
- Parameters
*args (path-like, optional) – The font files to add. By default, if positional arguments are passed, then
user
is set toFalse
. Files must have the extensions.ttf
or.otf
. See this link for a guide on converting other font files to.ttf
and.otf
.user (
bool
, optional) – Whether to reload fonts fromuser_folder
. Default isFalse
if positional arguments were passed andTrue
otherwise.default (
bool
, optional) – Whether to reload the default fonts packaged with proplot. Default is alwaysFalse
.