FROM : Dan Wood - Discussion Lists
DATE : Thu Dec 16 18:39:08 2004
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?
DATE : Thu Dec 16 18:39:08 2004
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?
| Related mails | Author | Date |
|---|---|---|
| Dan Wood - Discuss… | Dec 16, 18:39 | |
| John DeSoi | Dec 19, 19:04 |






Cocoa mail archive

