PFN_DrvQueryGlyphAttrs callback function (winddi.h)

The DrvQueryGlyphAttrs function returns information about a font's glyphs.

Syntax

PFN_DrvQueryGlyphAttrs PfnDrvqueryglyphattrs;

PFD_GLYPHATTR PfnDrvqueryglyphattrs(
  FONTOBJ *unnamedParam1,
  ULONG unnamedParam2
)
{...}

Parameters

unnamedParam1

unnamedParam2

Return value

DrvQueryGlyphAttrs should return a pointer to an FD_GLYPHATTR structure. If an error is encountered, such as an invalid input argument, or if the font described by the FONTOBJ structure is not a vertical font, the function should return NULL.

Remarks

The DrvQueryGlyphAttrs function should be supplied by font drivers. Currently, the only attribute flag defined is FO_ATTR_MODE_ROTATE, meaning the function should indicate which glyphs of a vertical font must be rotated. (For vertical fonts, DBCS glyphs must be rotated.) This information is useful to printer drivers that support printers having built-in font rasterizers.

The function should return rotation information in the FD_GLYPHATTR structure that is used as the function's return value.

GDI calls the appropriate font driver's DrvQueryGlyphAttrs function when a printer driver calls GDI's FONTOBJ_pQueryGlyphAttrs function.

Requirements

Requirement Value
Target Platform Desktop
Header winddi.h (include Winddi.h)

See also

FD_GLYPHATTR

FONTOBJ

FONTOBJ_pQueryGlyphAttrs