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
)Character vector of strings to measure
Font name. A character vector, recycled to match x.
Font size. A numeric vector, recycled to match x.
Is text bold/italic? A logical vector, recycled to match x.
Font file. A character vector, recycled to match x.
Other functions for font metrics:
font_line_metrics(),
str_metrics(),
strings_sizes()