Skip to contents

Imports the Ubuntu font from the fmggp2 package assets, adds it to the available system fonts, and turns on automatic font loading with showtext so graphs can use it.

Usage

load_fmggp2_fonts()

Value

Invisible NULL. The function is called for its side effects.

Fonts Import

extrafont::font_import() imports the fonts, which makes them available in PDF and PostScript graphics. The import runs without prompting the user.

Fonts Addition

Once imported, the Ubuntu font is added to the available system fonts with sysfonts::font_add().

Enabling Font in Graphics

Finally, showtext::showtext_auto() turns on automatic font rendering, so graphics devices use the font right away.