GetRasterizerCaps function (wingdi.h)

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

Syntax

BOOL GetRasterizerCaps(
  [out] LPRASTERIZER_STATUS lpraststat,
  [in]  UINT                cjBytes
);

Parameters

[out] lpraststat

A pointer to a RASTERIZER_STATUS structure that receives information about the rasterizer.

[in] cjBytes

The number of bytes to be copied into the structure pointed to by the lprs parameter.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

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.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wingdi.h (include Windows.h)
Library Gdi32.lib
DLL Gdi32.dll

See also

Font and Text Functions

Fonts and Text Overview

GetOutlineTextMetrics

RASTERIZER_STATUS