Re: Bold Text
Re: Bold Text
- Subject: Re: Bold Text
- From: Paolo Bertani <email@hidden>
- Date: Wed, 24 May 2006 10:27:59 +0200
No I didn't.
Now I've tried but doesn't work:
NSFont *font;
font = [NSFont fontWithName:@"Geneva" size:8];
font = [[NSFontManager sharedFontManager] convertFont:font
toHaveTrait:NSBoldFontMask];
NSMutableDictionary *genevaBold;
genevaBold = [[NSMutableDictionary alloc] init];
[genevaBold setObject:font forKey:NSFontAttributeName];
This way I get Geneva text but not Bold, just plain.
Paolo
On 24 maj 2006, at 08.20, Paolo Bertani wrote:
I thought that every font could be Bold-faced...
Have you tried to use the "-[NSFontManager
convertFont:toHaveTrait:] way to get a bold version of some font?
j o a r
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden