CGXFont::ChangeFont
void ChangeFont(const CGXFont& p, GXModifyType mt);
p
Reference to the font object to be applied.
mt
-
Specifies the modifytype:
- gxApplyNew for applying only new attributes.
- gxOverride for overriding existing attributes.
- gxCopy for copying the font.
gxExclude for resetting attributes.
Remarks
Applies a new font on the current font.
Following operations are supported:
·Applying only new attributes (gxApplyNew): Only those attributes are copied from the source font to the destination font that are included in the source font and not yet included in the destination font.
·Overriding attributes (gxOverride): Attributes included in the source font are copied from the source font to the destination font whether or not they are included in the destination font.
·Copying the font (gxCopy): All attributes are copied from the source font to the destination font. Attributes that are not included in the source font will be removed from the destination font.
·Resetting attributes (gxExclude): Attributes that are included in the source font will be removed from the destination font.
See Also
CGXFont::IsSubSet CGXStyle::ChangeStyle