GetAspectRatioFilterEx function (wingdi.h)

The GetAspectRatioFilterEx function retrieves the setting for the current aspect-ratio filter.

Syntax

BOOL GetAspectRatioFilterEx(
  [in]  HDC    hdc,
  [out] LPSIZE lpsize
);

Parameters

[in] hdc

Handle to a device context.

[out] lpsize

Pointer to a SIZE structure that receives the current aspect-ratio filter.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Remarks

The aspect ratio is the ratio formed by the width and height of a pixel on a specified device.

The system provides a special filter, the aspect-ratio filter, to select fonts that were designed for a particular device. An application can specify that the system should only retrieve fonts matching the specified aspect ratio by calling the SetMapperFlags function.

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

SIZE

SetMapperFlags