virtual bool GetGlyphRaster(unsigned glyphIndex, unsigned hintedSize, GlyphRaster* raster);
GetGlyphRaster obtains the raster glyphs, either pre-rasterized or rasterized by demand, provided by some fonts. This feature is important for CJK fonts at small font sizes. For fonts that do not provide raster glyphs, it is not necessary to override this function.
Parameters |
Description |
unsigned glyphIndex |
The glyph index value. |
unsigned hintedSize |
The font size for native hinting. |
GlyphRaster* raster |
The glyph rasterizer for obtaining the raster font glyph. |
A Boolean value of true if raster glyphs are returned and false otherwise.