| m_str_extents | R Documentation |
For each x element, determines the width and height of a bounding box that's big enough
to (just) enclose the provided text. Unit is points.
m_str_extents(
x,
fontname = "sans",
fontsize = 10,
bold = FALSE,
italic = FALSE,
fontfile = NULL
)
x |
Character vector of strings to measure |
fontname |
Font name. A character vector, recycled to match |
fontsize |
Font size. A numeric vector, recycled to match |
bold, italic |
Is text bold/italic? A logical vector, recycled to match |
fontfile |
Font file. A character vector, recycled to match |
This function is deprecated and will be removed in a future
release. Use strings_sizes() instead, which returns the width, the
ascent and the descent in inches (the height is the sum of the ascent
and the descent).
Other functions for font metrics:
str_metrics(),
strings_sizes()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.