Compute the width, ascent and descent of a single string in points using Cairo text measurement.
Usage
str_metrics(
x,
fontname = "sans",
fontsize = 12,
bold = FALSE,
italic = FALSE,
fontfile = ""
)Note
This function will be deprecated in a future release.
Use strings_sizes() instead.
See also
Other functions for font metrics:
m_str_extents(),
strings_sizes()