load_pkg_fonts: Load package fonts

View source: R/font-load.R

load_pkg_fontsR Documentation

Load package fonts

Description

Registers fonts contained in penngradlings with systemfonts::register_font(). This function is called once silently when the package is loaded.

Usage

load_pkg_fonts(verbose = TRUE)

Arguments

verbose

Whether the newly registered fonts should be printed to the console. Defaults to TRUE.

Details

All styles of a font family are registered as the Regular member of their own families in the form of "family-style(s)".

Call systemfonts::registry_fonts() after loading the fonts for more details (also returned invisibly).

Value

An invisible call to systemfonts::registry_fonts() for further inspection.

Fonts loaded

⁠Charis SIL⁠

by SIL international, retrieved from https://software.sil.org/charis/.

Inter

by Rasmus Andersson, retrieved from https://fonts.google.com/specimen/Inter.

Piazzolla

by Juan Pablo del Peral, retrieved from https://fonts.google.com/specimen/Piazzolla.

⁠Atkinson Hyperlegible⁠

by Braille Institute, retrieved from https://fonts.google.com/specimen/Atkinson+Hyperlegible.

⁠Bootstrap Icons⁠

by The Bootstrap Authors, retrieved from https://icons.getbootstrap.com/.

⁠Material Icons⁠

by Google Design, retrieved from https://fonts.google.com/icons/.

⁠Font Awesome 5 Free⁠

by Dave Gandy https://fontawesome.com/. The free version contains a subset of the Regular, Solid, and Brand styles: https://fontawesome.com/v5.15/icons?d=gallery&p=2&s=brands,regular,solid&m=free.

Copy of the license for each font is included in the package source. The use of these fonts in the package does not indicate endorsement or liability of the copyright/trademark holders. We thank the developers of the fonts for their open-source contributions and permissive licenses.

Examples

## Not run: 
load_pkg_fonts()

## End(Not run)


yjunechoe/penngradlings documentation built on Sept. 6, 2024, 8:13 p.m.