nw::font::CharWriter::SetFontSize Member Function

Syntax

void SetFontSize(
     f32 width,
     f32 height
);

Arguments

Name Description
in width Width of the cell after enlargement.
in height Height of the cell after enlargement.

Return Values

None.

Description

Specifies the character size.

Changes the enlargement factor so that the character size is actually the specified character size. The same value as the vertical enlargement factor is used for horizontal direction for the format that specifies one argument.

The font must be set in order to calculate the enlargement factor according to the set font. Also, because the size is retained internally by the enlargement factor, the character size to be drawn will change when the font is changed to a different size.

See Also

nw::font::CharWriter::SetScale
nw::font::CharWriter::GetFontWidth
nw::font::CharWriter::GetFontHeight

Revision History

2009/11/09
Initial version.

CONFIDENTIAL