LONG DrvQueryTrueTypeOutline(
IN DHPDEV dhpdev, | |
IN FONTOBJ *pfo, | |
IN HGLYPH hglyph, | |
IN BOOL bMetricsOnly, | |
IN GLYPHDATA *pgldt, | |
IN ULONG cjBuf, | |
IN TTPOLYGONHEADER *ppoly | |
); |
DrvQueryTrueTypeOutline retrieves glyph outlines in native TrueType format.
Parameters
dhpdev
Specifies a handle to a PDEV returned from a call to DrvEnablePDEV.
pfo
Points to a FONTOBJ structure. Details of the font realization can be queried from this structure.
hglyph
Specifies the HGLYPH structure for which the outline is being queried.
bMetricsOnly
Specifies whether the TrueType outline should not be provided; if this parameter is TRUE, the TrueType outline is not provided. If it is FALSE and ppoly is not null, the TrueType outline is provided.
pgldt
Points to the buffer where the GLYPHDATA structure for this glyph should be written. If pgldt is null, this parameter is ignored.
cjBuf
Specifies the size, in bytes, of the buffer that will contain the TrueType outline.
ppoly
Points to the buffer where the TrueType outline should be written. The format of the data is in native TrueType format, stored in a TTPOLYGONHEADER structure.
Return Value
The return value is the size, in bytes, required for the ppoly buffer if pgldt is null. If pgldt is not null, the return value is the number of bytes copied into the ppoly buffer. If an error occurs, the return value is FD_ERROR.
Comments
DrvQueryTrueTypeOutline is required for TrueType font drivers.
See Also