The DrvQueryAdvanceWidths function returns character advance widths for a specified set of glyphs.
BOOL
DrvQueryAdvanceWidths(
IN DHPDEV dhpdev,
IN FONTOBJ *pfo,
IN ULONG iMode,
IN HGLYPH *phg,
OUT PVOID pvWidths,
IN ULONG cGlyphs
);
| Value | Meaning |
|---|---|
| QAW_GETEASYWIDTHS | The character advance widths are returned as an array of 12.4 fixed-point numbers. This mode will not be used if the widths exceed the range of the 12.4 representation. This routine should compute widths as quickly as possible. If the computation of a glyph's character advance width cannot be accomplished efficiently, the driver should write 0xFFFF into the buffer for that glyph. The function returns DDI_ERROR if an error occurs, FALSE if not all widths can be efficiently computed for this mode, or TRUE in all other cases. |
| QAW_GETWIDTHS | The character advance widths are recorded as an array of 12.4 fixed-point numbers. This mode will not be used if the widths exceed the range of the 12.4 representation. The function returns TRUE if successful. |
The return value is dependent on the value of the iMode parameter.
Declared in winddi.h. Include winddi.h.