# NNS_G2dFontGetCharWidthFromIndex

## C Specification

      #include <nnsys/g2d/g2d_Font.h>

      const NNSG2dCharWidths* 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.

## Description

Gets the character width of 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.

## See Also

`NNS_G2dFontGetCharWidth`

## Revision History

05/25/2005 Initial version.