This function helps you understand the concepts of width, height, bearing, and advance by annotating a glyph with the various measures
plot_glyph_stats(
glyph,
family = "",
italic = FALSE,
weight = "normal",
width = "undefined",
size = 12,
res = 72,
variation = font_variation(),
path = NULL,
index = 0
)
This function is called for its side effects
The character to plot
The name of the font families to match
logical indicating the font slant
The weight to query for, either in numbers (0
, 100
, 200
,
300
, 400
, 500
, 600
, 700
, 800
, or 900
) or strings ("undefined"
,
"thin"
, "ultralight"
, "light"
, "normal"
, "medium"
, "semibold"
,
"bold"
, "ultrabold"
, or "heavy"
). NA
will be interpreted as
"undefined"
/0
The width to query for either in numbers (0
, 1
, 2
,
3
, 4
, 5
, 6
, 7
, 8
, or 9
) or strings ("undefined"
,
"ultracondensed"
, "extracondensed"
, "condensed"
, "semicondensed"
,
"normal"
, "semiexpanded"
, "expanded"
, "extraexpanded"
, or
"ultraexpanded"
). NA
will be interpreted as "undefined"
/0
The pointsize of the font to use for size related measures
The ppi of the size related measures
A font_variation
object or a list of them to control
variable fonts
path an index of a font file to circumvent lookup based on family and style