A generous estimate of the width of a text, 0.6 of the font size per character, so that the text fits its space even in a wide fallback font.
Examples
rghcard:::text_width(c("rwf", "golemworldbank"), 12)
#> [1] 21.6 100.8
A generous estimate of the width of a text, 0.6 of the font size per character, so that the text fits its space even in a wide fallback font.
rghcard:::text_width(c("rwf", "golemworldbank"), 12)
#> [1] 21.6 100.8