Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fonts



Hello,

I am trying to increase the weighting of the "userFixedPitchFontOfSize":

NSFont* font = [NSFont userFixedPitchFontOfSize:10.0];
NSFont* test = [[NSFontManager sharedManager] convertFont:font
toHaveTrait:NSBoldFontMask];

if ( test == font ) NSLog(@"font manager was unable to convert font to
have bold");

NSFont* test2 = [[NSFontManager sharedManager] convertWeight:YES
ofFont:font];

if ( test2 == font ) NSLog(@"font manager was unable to increase weight
of the font");


If I run the following code, both log messages are shown.

Ok so this may sound reasonable-- maybe Monaco just doesn't have the
ability to
display bold or weighted characters? Wrong-- my terminal is set to use
Monaco 10pt and it shows Monaco in bold all the time. What am I doing
wrong?

Thanks,
Rick Bischoff
Blog, and home for some MacOS X apps -- http://rickjr.org
_______________________________________________
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.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.