8.18/6/2018

StringWidthUTF8 (function)

Returns the length, in inches, of the string as it would be displayed on a page, using the current font. Bear in mind that the combination of many bytes sometimes results in a single glyph and that text orientation can also affect the number of glyphs displayed.

Syntax

stringwidthutf8(text, mode)

Arguments

text

UTF8 text string to be measured.

mode

String specifying how the contextual analysis is to be performed. Possible values are 'normal', 'reverse', and 'none' (for no contextual analysis).