Why are Monaco, Courier not showing up as fixed pitch?
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