str_extents | R Documentation |
Determines the width and height of a bounding box that's big enough to (just) enclose the provided text.
str_extents(
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 |
str_extents(letters)
str_extents("Hello World!", bold = TRUE, italic = FALSE,
fontname = "sans", fontsize = 12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.