getStringWidth: Get width of a proportional string

getStringWidthR Documentation

Get width of a proportional string

Description

Returns estimated width (in "standard characters") of a string, as if it were rendered using a proportional font. This function is used for the purpose of scaling text containers when the actual width of the text is not yet known (before rendering the text).

Usage

getStringWidth(string)

Arguments

string

character string.

Value

numeric (floating-point) value.


Roche/ggtips documentation built on May 14, 2022, 12:44 p.m.