get_string_width

self.get_string_width(s: str)

Description

Returns the length of a string in user unit. A font must be selected.

The value is calculated with stretching and spacing.

Parameters

s:

The string whose length is to be computed.

See also

set_stretching.