typedef struct tagFMATCH {
DWORD fmSize;
DWORD fmTotalPenalty;
FMPENALTYSET fmPenaltySet;
EXTLOGFONT fmExtLogFont;
} FMATCH;
EnumNearestFonts returns an ordered array of FMATCH structures. An FMATCH structure specifies the font and how it matched against a target font.
fmSize
This is the size of this structure in bytes. For this version of Windows this must be set equal to sizeof(FMATCH).
fmTotalPenalty
This is the total penalty associated with the font. This is equal to the sum of all the members of the fmPenaltySet field of this structure.
fmPenaltySet
This is a set of weighted penalties associated with this font. Each weighted penalty member is determined as follows. First, a penalty is assigned to the difference between the font and the target font characteristic. Then this penalty is multiplied by a weight as specified in the FMWEIGHTSET structure associated with the process.
fmExtLogFont
This is the extended logical font that describes the physical font. This structure can by used to create a font and then select it.
EXTLOGFONT EnumNearestFonts FMPENALTYSET