register_plexsans: Register IBM font with system

View source: R/fonts-ragg.R

register_plexsansR Documentation

Register IBM font with system

Description

Register the IBM Plex Sans font files contained in the package with the OS font system. Wrapper around 'systemfonts::register_font()' Useful in situations where you cannot install fonts into the system font location, e.g. on CI systems.

Usage

register_plexsans(family = "IBM Plex Sans", features = NULL, warn = TRUE)

Arguments

family

What you want the resulting font family to be called in the registry. Defaults to "IBM Plex Sans"

features

Unused for now

warn

Whether to warn when a font family of the same name already exists. Defaults to TRUE.

Value

TRUE if a font was successfully registered, FALSE otherwise. Called for side effects.

Examples

register_plexsans("ibmpsc")

petrbouchal/ptrr documentation built on Oct. 10, 2024, 7:21 a.m.