Returns a font whose traits are the same as those of the given font, except that the traits are changed to include the single specified trait.
Original signature is '- (NSFont *)convertFont:(NSFont *)aFont toHaveTrait:(NSFontTraitMask)fontTrait'
Available in Mac OS X v10.0 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public virtual NSFont ConvertFontToHaveTrait( NSFont aFont, NSFontTraitMask fontTrait )
Public Overridable Function ConvertFontToHaveTrait ( _ aFont As NSFont, _ fontTrait As NSFontTraitMask _ ) As NSFont
public: virtual NSFont^ ConvertFontToHaveTrait( NSFont^ aFont, NSFontTraitMask fontTrait )
Parameters
- aFont (NSFont)
- The font whose traits are matched.
- fontTrait (NSFontTraitMask)
- The new trait; may be any one of the traits described in “Constants.” Using NSUnboldFontMask or NSUnitalicFontMask removes the bold or italic trait, respectively.
Return Value
A font with matching traits including the given trait, or aFont if it can’t be converted.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)