• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Fonts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fonts


  • Subject: Fonts
  • From: Rick Bischoff <email@hidden>
  • Date: Mon, 28 Jun 2004 05:27:29 -0500

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.


  • Follow-Ups:
    • Re: Fonts
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: Re: Resizing NSButton doesn't clear previous size
  • Next by Date: Re: Fonts
  • Previous by thread: IB Palette List?
  • Next by thread: Re: Fonts
  • Index(es):
    • Date
    • Thread