Skip to contents

Imports and registers the Calibri font for use in ggplot2 plots when using the themeDarwin.

Usage

requireExtrafont(device = "win")

Arguments

device

Character string indicating the graphics device to load the fonts into (e.g., "win", "pdf", "postscript"). Defaults to "win" (Windows).

Value

Invisibly returns TRUE on successful registration.

Details

This function is required only once per R installation or after installing a new font. It uses the extrafont package to map system fonts to R's graphics devices.