font_preview: Print information and previews of the fonts

View source: R/font_preview.R

font_previewR Documentation

Print information and previews of the fonts

Description

font_names() displays the list of the fonts currently included in font_register(). font_table() generates a formatted tibble with information on the properties of all of the included fonts. font_styles() displays the included styles for a selected font. font_preview() displays a simple preview of the selected font in the graphics window. The preview requires the ragg package and the RStudio graphics backend to be set to AGG to display correctly.

Usage

font_preview(font = "Roboto Regular")

font_names()

font_styles(font = "Roboto Regular")

font_table()

Arguments

font

Which font family to preview; defaults to "Roboto Medium"

Table Format

For font_table():

family

The font family name, used in the font_*() functions

style

The included styles for each font family

weight

If the style is bold or normal weight

italic

If the style is italicized or not

features

What font features are included in the registered fonts (like ligatures, tabular numbers, etc.)

Examples

## Not run: 
font_preview(font = "Roboto Light")

## End(Not run)

christyray/crthemes documentation built on April 14, 2023, 11:18 p.m.