• 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
Re: Check font is installed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Change titlecolor from NSWindow
  • Next by Date: Re: Change titlecolor from NSWindow
  • Previous by thread: Re: Check font is installed
  • Next by thread: NSTextField : what's happening when the undo command is used ?
  • Index(es):
    • Date
    • Thread