NNS_G2dFontGetCharWidthsFromIndex

Syntax


#include <nnsys/g2d/g2d_Font.h>

const NNSG2dCharWidths* NNS_G2dFontGetCharWidthsFromIndex(
	const NNSG2dFont* pFont,
	u16 idx
);

Arguments

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

Return Values

Returns a pointer to the character width information.

Description

Gets the character width information for the glyph corresponding to idx. If there is no glyph corresponding to idx or the glyph does not have its own character width information, returns a pointer to the default character width for the font.

This function does not support vertically written or vertically held fonts.

See Also

NNS_G2dFontGetCharWidths

Revision History

2007/03/14 Added a description of the vertically written/held fonts
2005/05/25 Initial version


CONFIDENTIAL