Make Monaco font bold?
Make Monaco font bold?
- Subject: Make Monaco font bold?
- From: Keith Renz <email@hidden>
- Date: Wed, 21 Aug 2002 21:21:08 -0400
Is there any way to make the Monaco font (OS X version) bold?
I've tried...
// Can we make bold Monaco?
font = [NSFont fontWithName:@"Monaco" size:14];
fontManager = [NSFontManager sharedFontManager];
font = [fontManager convertFont:font toHaveTrait:NSBoldFontMask];
and (but not together)
font = [fontManager convertWeight:YES ofFont:font];
I've used the resultant font as an attribute in an NSMutableAttributedString,
but no luck -- no bold Monaco. Looking at the Monaco font itself, it has no
bold family member. I thought maybe convertFont:toHaveTrait: or
convertWeight:ofFont: might "smear" the regular Monaco font.
Thanks,
Keith
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.