str_metrics | R Documentation |
Get font metrics for a string.
str_metrics(
x,
fontname = "sans",
fontsize = 12,
bold = FALSE,
italic = FALSE,
fontfile = ""
)
x |
Character vector of strings to measure |
fontname |
Font name |
fontsize |
Font size |
bold , italic |
Is text bold/italic? |
fontfile |
Font file |
A named numeric vector
str_metrics("Hello World!")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.