Re: Check font is installed
Re: Check font is installed
- Subject: Re: Check font is installed
- From: Matt Neuburg <email@hidden>
- Date: Mon, 02 Oct 2006 13:34:25 -0700
- Thread-topic: Check font is installed
On Mon, 2 Oct 2006 11:46:03 -0700 (PDT), Keith Blount
<email@hidden> said:
>Would something like this be enough:
>
>NSString *defaultFontName = [[[NSFontManager
>sharedFontManager] availableFonts]
>containsObject:@"Optima"] ? @"Optima" : @"Helvetica";
No, you can get a false positive that way. See this thread:
<http://www.cocoabuilder.com/archive/message/cocoa/2006/2/27/157571>
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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