register_font_scala | R Documentation |
showtext
and systemfonts
packagesRegisters RUB Scala TZ font to be used with showtext
and systemfonts
packages
register_font_scala( family = get_font_df("RUB Scala TZ.ttf")[["family"]], regular = get_font_df("RUB Scala TZ.ttf")[["path"]], bold = get_font_df("RUB Scala TZ Bold.ttf")[["path"]], italic = get_font_df("RUB Scala TZ Italic.ttf")[["path"]], bolditalic = get_font_df("RUB Scala TZ Bold Italic.ttf")[["path"]], systemfonts_suffix = "_systemfonts" )
family |
Character, font family, defaults to
|
regular |
Character, path of the font file for "regular" font style
defaults to |
bold |
Character, path of the font file for "bold" font style,
defaults to |
italic |
Character, path of the font file for "italic" font style,
|
bolditalic |
Character, path of the font file for "bold italic" font style,
defaults to |
systemfonts_suffix |
Suffix attached to the font family name in |
Side effects
register_font_scala()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.