Prev Next

GetRasterizerCaps info  Overview  Group

The GetRasterizerCaps function returns flags indicating whether TrueType fonts are installed in the system.

BOOL GetRasterizerCaps(

    LPRASTERIZER_STATUS lprs,

// address of rasterizer information structure

    UINT cb 

// number of bytes in structure

   );

Parameters

lprs
Points to a RASTERIZER_STATUS structure to receive information about the rasterizer.
cb
Specifies the number of bytes to be copied into the structure pointed to by the lprs parameter.

Return Values

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

Remarks

The GetRasterizerCaps function enables applications and printer drivers to determine whether TrueType fonts are installed.

If the TT_AVAILABLE flag is set in the wFlags member of the RASTERIZER_STATUS structure, at least one TrueType font is installed. If the TT_ENABLED flag is set, TrueType is enabled for the system.

The actual number of bytes copied is either the member specified in the cb parameter or the length of the RASTERIZER_STATUS structure, whichever is less.

See Also

GetOutlineTextMetrics, RASTERIZER_STATUS