| font_preview | R Documentation |
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.
font_preview(font = "Roboto Regular")
font_names()
font_styles(font = "Roboto Regular")
font_table()
font |
Which font family to preview; defaults to "Roboto Medium" |
For font_table():
familyThe font family name, used in the
font_*() functions
styleThe included styles for each font family
weightIf the style is bold or normal weight
italicIf the style is italicized or not
featuresWhat font features are included in the registered fonts (like ligatures, tabular numbers, etc.)
## Not run:
font_preview(font = "Roboto Light")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.