font_path: Find path to a system font

View source: R/font-helpers.R

font_pathR Documentation

Find path to a system font

Description

Wrapper around penngradlings::font_info that pulls the path of the font if it exists.

Usage

font_path(family, style = "Regular")

Arguments

family

Font family.

style

Font style. Defaults to "Regular". If the font doesn't exist, invisibly returns NULL.

Value

String of the path to the font file.


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