NNS_G2dFontGetCharWidth

Syntax


#include <nnsys/g2d/g2d_Font.h>

const int NNS_G2dFontGetCharWidth(
	const NNSG2dFont* pFont,
	u16 c
);

Arguments

pFont [IN] Pointer to font
c [IN] Character code of the character to get character width for

Return Values

Returns the character width in pixels.

Description

Gets the character width of the glyph that corresponds to c. If there is no glyph corresponding to c or the glyph does not have its own character width information, gets the default character width.

For vertically written fonts, this function gets the character's height.

See Also

NNS_G2dFontGetCharWidthFromIndex

Revision History

2007/03/14 Added support for the vertically written and vertically held fonts. Corrected an error in Description.
2005/05/25 Initial version.


CONFIDENTIAL