Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GetAspectRatioFilterEx function

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

Syntax


BOOL GetAspectRatioFilterEx(
  _In_  HDC    hdc,
  _Out_ LPSIZE lpAspectRatio
);

Parameters

hdc [in]

Handle to a device context.

lpAspectRatio [out]

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wingdi.h (include Windows.h)

Library

Gdi32.lib

DLL

Gdi32.dll

See also

Fonts and Text Overview
Font and Text Functions
SetMapperFlags
SIZE

 

 

Show: