#include <nnsys/g2d/g2d_Font.h>
const u8* NNS_G2dFontGetGlyphImageFromIndex(
const NNSG2dFont* pFont,
u16 idx
);
pFont | [IN] Pointer to font |
idx | [IN] Glyph index of the glyph to get the glyph image for |
Returns a pointer to the glyph image.
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).
2005/05/25 Initial version.
CONFIDENTIAL