The SetMapperFlags function alters the algorithm the font mapper uses when it maps logical fonts to physical fonts.
DWORD SetMapperFlags(
HDC hdc, // handle to device context
DWORD dwFlag // font-mapper flag
);
If the function succeeds, the return value is the previous value of the font-mapper flag.
If the function fails, the return value is GDI_ERROR.
Windows NT: To get extended error information, call GetLastError.
If the dwFlag parameter is set and no matching fonts exist, Windows chooses a new aspect ratio and retrieves a font that matches this ratio.
The remaining bits of the dwFlag parameter must be zero.
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, GetAspectRatioFilterEx