NNS_G2dFontGetGlyphImageFromIndex

Syntax


#include <nnsys/g2d/g2d_Font.h>

const u8* NNS_G2dFontGetGlyphImageFromIndex(
	const NNSG2dFont* pFont,
	u16 idx
);

Arguments

pFont [IN] Pointer to font
idx [IN] Glyph index of the glyph to get the glyph image for

Return Values

Returns a pointer to the glyph image.

Description

Gets the glyph image of the glyph corresponding to idx. If there is no glyph corresponding to idx, the operation is undefined.

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_G2dFontGetGlyphImage

Revision History

2005/05/25 Initial version.


CONFIDENTIAL