NNS_G2dFontGetCharWidthFromIndex

Syntax


#include <nnsys/g2d/g2d_Font.h>

int NNS_G2dFontGetCharWidthFromIndex(
	const NNSG2dFont* pFont,
	u16 idx
);

Arguments

pFont [IN] Pointer to font
idx [IN] Glyph index of the glyph to get character width for

Return Values

Returns the character width in pixels.

Description

Gets the character width of the glyph corresponding to idx. If no glyph corresponds to idx, or the glyph does not have its own character width information, the default character width for the font will be returned.

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

See Also

NNS_G2dFontGetCharWidth

Revision History

2007/03/14 Added support for the vertically written and vertically held fonts. Corrected the prototype and description.
2005/05/25 Initial version.


CONFIDENTIAL