Skip navigation.
 
mlRe: NSFont & bold
FROM : John Brownlow
DATE : Thu Apr 21 19:46:46 2005

the simplest way of doing it is something like

   newFont = [[NSFontManager sharedFontManager] convertFont: oldFont
                                                toHaveTrait: NSBoldFontMask];


On Apr 21, 2005, at 1:39 PM, Henry McGilton wrote:

> You can also add or remove 'traits' using NSFontManager.  Read
> the 'Constants' section of NSFontManager, and look at addFontTrait:,
> removeFontTrait:, convertFont:toHaveTrait, convertFont:toNotHaveTrait:
> methods.

--
John Brownlow
Deep Fried Films, Inc

http://www.johnbrownlow.com
http://www.pinkheadedbug.com

Related mailsAuthorDate
mlNSFont & bold Luc Vandal Apr 21, 19:15
mlRe: NSFont & bold Henry McGilton Apr 21, 19:39
mlRe: NSFont & bold Jeff Gilbert Apr 21, 19:44
mlRe: NSFont & bold John Brownlow Apr 21, 19:46