Get font metrics for a string.
str_metrics(
x,
fontname = "sans",
fontsize = 12,
bold = FALSE,
italic = FALSE,
fontfile = ""
)
A named numeric vector
str_metrics("Hello World!")
#> width ascent descent
#> 74.1328125 9.1171875 0.1699219