NNS_G2dFontGetWidthFromIndex

Syntax


#include <nnsys/g2d/g2d_Font.h>

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

Arguments

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

Return Values

Returns the character width in pixels.

Description

Gets the character width of the glyph corresponding to idx. If there is no glyph corresponding to idx or if the glyph does not have its own character width information, gets the character width from the font's default character width information.

See Also

NNS_G2dFontGetWidth

Revision History

2005/01/xx Initial version.


CONFIDENTIAL