Returns an estimated display width in inches for a character string rendered in the given font and size. For Courier New (monospace) the estimate is reliable; for proportional fonts (Arial) it is an average-width approximation.
Arguments
- text
A character vector.
NAis treated as"".- font
Font name:
"Courier New"/"courier_new","Courier", or"Arial"(case and spaces do not matter).NULL(default) is the package's font,getOption("rtfreporter.font")("Courier"), as for every otherfont =. Unrecognised values fall back to Courier New.- font_size_half_points
Font size in half-points (the unit used by RTF and the document's
default_format$font_size_half_points). Default18= 9 pt.- size_half_points
Superseded by
font_size_half_points(the name every other function uses); documented, still working, not warned.