The GetAspectRatioFilterEx function retrieves the setting for the current aspect-ratio filter.
BOOL GetAspectRatioFilterEx(
HDC hdc, // handle to device context
LPSIZE lpAspectRatio // pointer to aspect-ratio filter
);
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 aspect ratio is the ratio formed by the width and height of a pixel on a given 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.
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, SetMapperFlags, SIZE