register_font_flama: Registers RUB Flama font to be used with the 'showtext' and...

View source: R/fonts.R

register_font_flamaR Documentation

Registers RUB Flama font to be used with the showtext and systemfonts packages

Description

Registers RUB Flama font to be used with the showtext and systemfonts packages

Usage

register_font_flama(
  family = get_font_df()[["family"]],
  regular = get_font_df()[["path"]],
  bold = get_font_df("RubFlama-Bold.ttf")[["path"]],
  italic = get_font_df("RubFlama-Italic.ttf")[["path"]],
  bolditalic = get_font_df("RubFlama-BoldItalic.ttf")[["path"]],
  systemfonts_suffix = "_systemfonts"
)

Arguments

family

Character, font family, defaults to get_font_df()[["family"]]

regular

Character, path of the font file for "regular" font style defaults to get_font_df()[["path"]]

bold

Character, path of the font file for "bold" font style, defaults to get_font_df("RubFlama-Bold.ttf")[["path"]]

italic

Character, path of the font file for "italic" font style, get_font_df("RubFlama-Italic.ttf")[["path"]]

bolditalic

Character, path of the font file for "bold italic" font style, defaults to get_font_df("RubFlama-BoldItalic.ttf")[["path"]]

systemfonts_suffix

Suffix attached to the font family name in systemfonts::register_font

Value

Side effects

Examples

register_font_flama()

RichardMeyer-Eppler/RUBer documentation built on June 2, 2022, 7:24 p.m.