# NNS_G2dFontGetWidth

## Syntax

      #include <nnsys/g2d/g2d_Font.h>

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

## Arguments

pFont | Pointer to font
c | Character code of the character to get the 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 character width from the font's default character width information.

## See Also

`NNS_G2dFontGetWidthFromIndex`

## Revision History

2005/01/xx Initial version.

CONFIDENTIAL