Re: Bizarre behaviour of NSFontDescriptor and/or NSCharacterSet

2011-02-03 Thread Brian Schack
Thanks for the informative and quick reply. I'll go ahead with the bug report. Brian ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins

Re: Bizarre behaviour of NSFontDescriptor and/or NSCharacterSet

2011-02-01 Thread Aki Inoue
I would recommend using the 3rd method. The first approach is instantiating an NSFont instance for all available faces. Instantiating NSFont has additional costs over just querying font descriptors (the font instance references graphics attributes, for example). The resource should be deallocated

Re: Bizarre behaviour of NSFontDescriptor and/or NSCharacterSet

2011-02-01 Thread Brian Schack
Aki, Many thanks for the reply. Taking your suggestion, I found three possible routes to rewriting the function (given below). All seem to work. One uses NSFontManager and NSFont: NSArray *fontNames = [[NSFontManager sharedFontManager] availableFonts]; for (NSString *fontName in fontNa

Re: Bizarre behaviour of NSFontDescriptor and/or NSCharacterSet

2011-02-01 Thread Aki Inoue
Brian, The font descriptor here describes a query matching font descriptors containing the character set equals to the supplied set. Since it's unlikely to have fonts with just "0123456789", for example, it should return 0 result. If you're seeing something different, please file a bug. To wha