ULONG FONTOBJ_cGetGlyphs(
IN FONTOBJ *pfo, | |
IN ULONG iMode, | |
IN ULONG cGlyph, | |
IN HGLYPH *phg, | |
OUT PVOID **ppvGlyph | |
); |
FONTOBJ_cGetGlyphs is a service to the font consumer that translates glyph handles into pointers to glyph data. These pointers are valid until the next call to FONTOBJ_cGetGlyphs.
Value |
Meaning |
FO_GLYPHBITS |
Data will consist of GLYPHBITS structures that define the bitmaps of the glyphs. |
FO_PATHOBJ |
Data will consist of PATHOBJ structures that define the outlines of the glyphs. To determine whether the path should be filled or stroked, the font consumer should check the flInfo member of the IFIMETRICS structure. If the FM_INFO_RETURNS_STROKES flag is set, the path should be stroked; otherwise, the path should be filled. |
The return value is the count of pointers passed to the driver if the function is successful. Otherwise, it is zero, and an error code is logged.
This function should be used if the driver is caching fonts.
DrvGetGlyphMode, FONTOBJ, FONTOBJ_cGetAllGlyphHandles, GLYPHBITS, IFIMETRICS, PATHOBJ