Cicode Programming Reference > Cicode Function Categories > String Functions Introduction > StrCalcWidth

StrCalcWidth

Retrieves the pixel width of a string using a particular font.

Syntax

StrCalcWidth(sText, iFont)

sText:

The text to determine the pixel width of

iFont:

The font number used to calculate the pixel width of the text. (To use the default font, set to -1).

Return Value

The pixel width of a string using the particular font.

Related Functions

StrTruncFont, StrTruncFontHnd, DspFont, DspFontHnd

See Also

String Functions