CGXFont::IsSubSet
BOOL IsSubSet(const CGXFont& fontSubSet) const;
fontSubSet
Reference to the font which is checked to determine if it is a subset of the current font.
Return Value
TRUE if the specified font is a subset of this font.
Remarks
Checks each attribute included in fontSubSet to see if it is included in the current font and if the settings are equal.
The following examples use the following font-object:
CGXFont font;
font.SetFaceName("Arial").SetSize(14);
·The expression below always returns TRUE, because an empty font is always subset of another font:
BOOL b = font.IsSubSet( CGXFont() );
·The next expression also returns TRUE because both fonts are equal:
BOOL b = font.IsSubSet( font );
·The next expression is also TRUE:
BOOL b = font.IsSubSet( CGXFont().SetFaceName("Arial") );
·The next expression is FALSE because font has no bold style included:
BOOL b = font.IsSubSet( CGXFont().SetBold(TRUE) );
·The next expression is FALSE because size is different:
BOOL b = font.IsSubSet( CGXFont().SetSize(20) );
See Also
CGXFont::ChangeFont CGXStyle::IsSubSet