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