Description Usage Arguments Value Examples
View source: R/preview-variant.R
Use this function to preview the special features of fonts you create
including how well the default kerning ruls work, how tabular numbers
behave, and whether or not modern, fun ligatures are supported. Change
the test_label
if you wish to use a custom preview string.
1 2 3 4 5 6 | preview_variant(
font_variant,
font_size = 5,
test_label = "Lorem Ipsum dolor sit amet consectetur. => A⃝\n−0+1:2~3,456789\n−9+8:7~6,543210"
)
|
font_variant |
a font variant object created with |
font_size |
passed to |
test_label |
a specially designed preview string to showcase some specific font features |
A ggplot2 object
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | reconfigure_font(
family = "Trattatello",
width = "normal",
ligatures = "discretionary",
calt = 1, tnum = 1, case = 1,
dlig = 1, kern = 1,
zero = 0, salt = 0
) -> trat
preview_variant(trat)
reconfigure_font(
family = "Barlow",
width = "normal",
ligatures = "standard",
tnum = 1, kern = 1
) -> barlow
preview_variant(barlow)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.