register_plex_mono: Register IBM font with system

View source: R/fonts-ragg.R

register_plex_monoR Documentation

Register IBM font with system

Description

Register the IBM Plex Sans Condensed 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_plex_mono(family = "IBM Plex Mono", features = NULL, warn = TRUE)

Arguments

family

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

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_condensed("ibmps")

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