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
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 mails | Author | Date |
|---|---|---|
| Luc Vandal | Apr 21, 19:15 | |
| Henry McGilton | Apr 21, 19:39 | |
| Jeff Gilbert | Apr 21, 19:44 | |
| John Brownlow | Apr 21, 19:46 |






Cocoa mail archive

