as_font_weight | R Documentation |
It is often more natural to describe font weight and width with names rather than numbers (e.g. "bold" or "condensed"), but underneath these names are matched to numeric values. These two functions are used to retrieve the numeric counterparts to names
as_font_weight(weight)
as_font_width(width)
weight , width |
character vectors with valid names for weight or width |
An integer vector matching the length of the input
as_font_weight(
c("undefined", "thin", "ultralight", "light", "normal", "medium", "semibold",
"bold", "ultrabold", "heavy")
)
as_font_width(
c("undefined", "ultracondensed", "extracondensed", "condensed", "semicondensed",
"normal", "semiexpanded", "expanded", "extraexpanded", "ultraexpanded")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.