Table of Contents

TTMSFNCPDFGraphicsLibOutputWriter.GetFontCharWidth Method

Returns the advance width of the character at APos in AText using the current font's width table.

API unit family: TMSFNCPDFCoreLibBase Declaring type: TTMSFNCPDFGraphicsLibOutputWriter

Syntax

function GetFontCharWidth(AText: UnicodeString; APos: Integer): Integer;

Parameters

Name Description
AText Unicode string containing the character to measure.
APos Zero-based character index within AText.

Returns

Advance width of the character in font design units.