PSGetTextWidth()

Syntax

Function PSGetTextWidth(cText)
TPageScript:GetTextWidth(cText)

Returns

A numeric value.

Description

Call PSGetTextWidth() to retrieve the width of the passed character string. PageScript 32 uses the current font, font size and font style to calculate the width of the text. The value is returned in the currently selected unit of measurement.

Arguments

cText String of the text to calculate the width.