• 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
Why are Monaco, Courier not showing up as fixed pitch?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why are Monaco, Courier not showing up as fixed pitch?


  • Subject: Why are Monaco, Courier not showing up as fixed pitch?
  • From: Dan Wood - Discussion Lists <email@hidden>
  • Date: Thu, 16 Dec 2004 09:39:08 -0800

Check out the results of this code fragment:

	NSFont *font = [NSFont fontWithName:@"Monaco" size:12.0];
	NSLog(@"%@ is fixed pitch? %d", font, [font isFixedPitch]);
	font = [NSFont fontWithName:@"Courier" size:12.0];
	NSLog(@"%@ is fixed pitch? %d", font, [font isFixedPitch]);


2004-12-16 09:35:13.918 Marvel[1359] "CGS Monaco 12.00 pt. P [] (0x0114c940) fobj=0x01155180, spc=7.20" is fixed pitch? 0
2004-12-16 09:35:13.921 Marvel[1359] "CGS Courier 12.00 pt. P [] (0x01161bc0) fobj=0x01137aa0, spc=7.20" is fixed pitch? 0



Not fixed pitch? What's going on? I'm pretty sure this call used to work, maybe pre-Panther. Maybe it's the mysterious "NSCGSFont" that is the actual runtime class of the NSFont created. Any explanations?


_______________________________________________
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


  • Follow-Ups:
    • Re: Why are Monaco, Courier not showing up as fixed pitch?
      • From: John DeSoi <email@hidden>
  • Prev by Date: Re: Using alerts with Preference Panes
  • Next by Date: Re: Embedding binary data in an application's property list
  • Previous by thread: Re: Using alerts with Preference Panes
  • Next by thread: Re: Why are Monaco, Courier not showing up as fixed pitch?
  • Index(es):
    • Date
    • Thread