The GetRasterizerCaps function returns flags indicating whether TrueType fonts are installed in the system.
BOOL GetRasterizerCaps(
LPRASTERIZER_STATUS lprs,
// pointer to rasterizer information structure
UINT cb // number of bytes in structure
);
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Windows NT: To get extended error information, call GetLastError.
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.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in wingdi.h.
Import Library: Use gdi32.lib.
Fonts and Text Overview, Font and Text Functions, GetOutlineTextMetrics, RASTERIZER_STATUS