CDC::SetMapperFlags

Syntax

DWORD SetMapperFlags( DWORD dwFlag );

Parameters

dwFlag

Specifies whether the font mapper attempts to match a font's aspect height and width to the device. When the first bit is set to 1, the mapper will only select fonts whose x-aspect and y-aspect exactly match those of the specified device.

Remarks

Alters the algorithm that the font mapper uses when it maps logical fonts to physical fonts. When the first bit of dwFlag is set to 1, the mapper will only select fonts whose x-aspect and y-aspect exactly match those of the specified device. If no fonts exist with a matching aspect height and width, GDI chooses an aspect height and width and selects fonts with aspect heights and widths that match the one chosen by GDI.

The remaining bits of dwFlag must be 0.

Return Value

The previous value of the font-mapper flag.

See Also

::SetMapperFlags