nw::font::TextWriterBase::CalcStringWidth Member Function

Syntax

f32 CalcStringWidth(
     const CharType * str,
     int           length
) const;

Arguments

Name Description
in str Text string
in length Character string length.

Return Values

Returns the width of the character string.

Description

Calculates the width of the text.

Returns the maximum width for each line of text when there is more than one line of text.

Revision History

2009/11/09
Initial version.

CONFIDENTIAL