Learn R Programming

gdtools (version 0.6.0)

match_family: Find best family match with systemfonts (deprecated)

Description

match_family() returns the best font family match. It is deprecated and will be removed in a future release, use systemfonts::match_fonts() instead.

Usage

match_family(font = "sans", bold = TRUE, italic = TRUE)

Arguments

font

family or face to match.

bold

Whether to match a font featuring a bold face.

italic

Whether to match a font featuring an italic face.

Examples

Run this code
suppressWarnings(match_family("sans"))
suppressWarnings(match_family("serif"))

Run the code above in your browser using DataLab