typedef struct tagFMWEIGHTSET {
DWORD wsSize; // size of this structure in BYTE's
DWORD wsHeight;
DWORD wsWidth;
DWORD wsEscapement;
DWORD wsOrientation;
DWORD wsWeight;
DWORD wsItalic;
DWORD wsUnderline;
DWORD wsStrikeOut;
DWORD wsOutPrecsion;
DWORD wsClipPrecision;
DWORD wsQuality;
DWORD wsPitchAndFamily;
DWORD wsFaceName;
DWORD wsFullName;
DWORD wsStyle;
DWORD wsPanose[PANOSE_COUNT];
DWORD wsVendorId;
DWORD wsLocation;
} FMWEIGHTSET;
The FMWEIGHTSET structures specifies the set of weights assigned various characteristics of a font. This members of this structure will affect the behavior of EnumNearestFonts.
For each characteristic of a font, EnumNearestFonts compares the corresponding value specified by the application in an EXTLOGFONT. If there difference then a penalty is associated with that font. The penalty is multiplied by the weight specified in the field found in the FMWEIGHTSET structure.
wsSize
This is the size of this structure in bytes. For this version of Windows this must be set equal to sizeof(FMPENALTYSET).
wsHeight
This is the weight associated with the lfHeight field of the extended logical font.
wsWidth
This is the weight associated with the lfWidth field of the extended logical font.
wsEscapement
This is the weight associated with the lfEscapement field of the extended logical font.
wsOrientation
This is the weight associated with the lfOrientation field of the extended logical font.
wsWeight
This is the weight associated with the lfWeight field of the extended logical font.
wsItalic
This is the weight associated with the lfItalic field of the extended logical font.
wsUnderline
This is the weight associated with the lfUnderline field of the extended logical font.
wsStrikeOut
This is the weight associated with the lfStrikeOut field of the extended logical font.
wsOutPrecsion
This is the weight associated with the lfOutPrecsion field of the extended logical font.
wsQuality
This is the weight associated with the lfQuality field of the extended logical font.
wsPitchAndFamily
This is the weight associated with the lfPitchAndFamily field of the extended logical font.
wsFaceName
This is the weight associated with the lfFaceName field of the extended logical font.
wsFullName
This is the weight associated with the elfFullName field of the extended logical font.
wsStyle
This is the weight associated with the elfStyle field of the extended logical font.
wsPanose
This is the weight associated with the elfPanose field of the extended logical font. This is actually an array of 10 fields for each of the Panose components.
wsVendorId
This is the weight associated with the elfVendorId field of the extended logical font.
wsLocation
This is the weight associated location of the font. There are only two state of font location: Resident or Non-Resident. If this weight is non zero, then non (device) resident fonts will be assigned a penalty equal to this weight.
FMCONTROLS SetFontMapperControls EXTLOGFONT