FMPENALTYSET

typedef struct tagFMPENALTYSET {

DWORD psSize;

DWORD psHeight;

DWORD psWidth;

DWORD psEscapement;

DWORD psOrientation;

DWORD psWeight;

DWORD psItalic;

DWORD psUnderline;

DWORD psStrikeOut;

DWORD psOutPrecsion;

DWORD psClipPrecision;

DWORD psQuality;

DWORD psPitchAndFamily;

DWORD psFaceName;

DWORD psFullName;

DWORD psStyle;

DWORD psPanose[PANOSE_COUNT];

DWORD psVendorId;

DWORD psLocation;

} FMPENALTYSET, *LPFMPENALTYSET;

An FMPENALTYSET defines a set of penalty cutoffs for a font. If the penalty associated with any field of a font exceeds the corresponding cutoff, then the font will not be enumerated by EnumNearestFonts.

Members

psSize

This is the size of this structure in bytes. For this version of Windows this must be set equal to sizeof(FMPENALTYSET).

psHeight

This is the cutoff associated with the lfHeight field of the extended logical font.

psWidth

This is the cutoff associated with the lfWidth field of the extended logical font.

psEscapement

This is the cutoff associated with the lfEscapement field of the extended logical font.

psOrientation

This is the cutoff associated with the lfOrientation field of the extended logical font.

psWeight

This is the cutoff associated with the lfWeight field of the extended logical font.

psItalic

This is the cutoff associated with the lfItalic field of the extended logical font.

psUnderline

This is the cutoff associated with the lfUnderline field of the extended logical font.

psStrikeOut

This is the cutoff associated with the lfStrikeOut field of the extended logical font.

psOutPrecsion

This is the cutoff associated with the lfOutPrecsion field of the extended logical font.

psQuality

This is the cutoff associated with the lfQuality field of the extended logical font.

psPitchAndFamily

This is the cutoff associated with the lfPitchAndFamily field of the extended logical font.

psFaceName

This is the cutoff associated with the lfFaceName field of the extended logical font.

psFullName

This is the cutoff associated with the elfFullName field of the extended logical font.

psStyle

This is the cutoff associated with the elfStyle field of the extended logical font.

psPanose

This is the cutoff associated with the elfPanose field of the extended logical font. This is actually an array of 10 fields for each of the Panose components.

psVendorId

This is the cutoff associated with the elfVendorId field of the extended logical font.

psLocation

This is the cutoff associated with the location of the font. There are only two classes of font location; (device) Resident and (device) Non-Resident. Resident fonts are never assigned a penalty and Non-Resident fonts are always assigned a penalty.

See Also

FMCONTROLS EnumNearestFonts