Font::MatchFontFlags_Static

Font::MatchFontFlags_Static
static bool SF_STDCALL MatchFontFlags_Static(unsigned fontFlags, unsigned matchFlags);
Description

MatchFontFlags_Static matches two sets of flags. MatchFontFlags_Static includes a particular heuristic for search based on a font name, helpful for handling Flash DeviceFont flag in text fields. 

If FF_DeviceFont is not specified all searches are done based on FF_StyleFont_Mask, and both regular and device fonts can be returned. 

If FF_DeviceFont is specified, only device fonts will be matched. 

The same rule applies to code page - it is considered only if specified as non-Unicode.

Parameters
Parameters 
Description 
unsigned fontFlags 
Font flags set for the font. 
unsigned matchFlags 
Font flags of the font to compare with the original font. 
Return Value

A Boolean value of true if both flag sets are equal.