reconfigure_font: Create an complete, alternate font family with the same...

Description Usage Arguments Value Examples

View source: R/reconfigure-font.R

Description

Create an complete, alternate font family with the same customized features

Usage

1
2
3
4
5
6
7
8
9
reconfigure_font(
  family,
  width = "normal",
  ligatures = NULL,
  letters = NULL,
  numbers = NULL,
  prefix = uuid::UUIDgenerate(),
  ...
)

Arguments

family

font family name

width

font width (defaults to "normal")

ligatures, letters, numbers

See systemfonts::font_feature()

prefix

string to use as a prefix to the names of the newly generated font family. If not specified, a guaranteed unique identifier will be used.

...

Extra four-letter font feature flags passed on to systemfonts::font_feature(). See See Microsoft and Wikipedia for tag descriptions.

Value

list with names of all the customized font family members. A family attribute is included which is the name of the family this variant is based on.

Examples

1
2
3
4
5
6
7
8
reconfigure_font(
  family = "Inter",
  width = "normal",
  ligatures = "discretionary",
  calt = 1, tnum = 1, case = 1,
  dlig = 1, ss01 = 1, kern = 1,
  zero = 0, salt = 0
) -> inter_1

hrbrmstr/hrbragg documentation built on Feb. 3, 2022, 1:39 a.m.