# NNS_G2dFontGetGlyphImage

## Syntax

      #include <nnsys/g2d/g2d_Font.h>

      const u8* NNS_G2dFontGetGlyphImage(
      	const NNSG2dFont* pFont,
      	u16 c
      );

## Arguments

pFont | [IN] Pointer to font
c | [IN] Character code of the character to obtain the glyph image for.

## Return Values

Returns a pointer to the glyph image.

## Description

Gets the glyph image of the glyph that corresponds to c. If there is no glyph that corresponds to c, gets the alternate character glyph image.

The return value is a pointer to a BMP having a width of `NNS_G2dFontGetCellWidth` pixels and a height of `NNS_G2dFontGetCellHeight` pixels. The glyph image is stored in this BMP aligned to the left edge. For example, a font of 3 bpp measuring 11x11 pixels would return a BMP having a data size of 11 * 11 * 3 = 363 bits (46 bytes).

## See Also

`NNS_G2dFontGetGlyphImageFromIndex`

## Revision History

2005/05/25 Initial version.

CONFIDENTIAL