• 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
How do I find deactivated fonts?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I find deactivated fonts?


  • Subject: How do I find deactivated fonts?
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 15 Oct 2013 22:08:28 -0700

I’m slightly confused about how deactivated fonts are represented programmatically.

* If I use the Font Book application, I can see all fonts (system and user) including ones that are deactivated. And I can activate and deactivate fonts.
* But in my app, when I iterate over all fonts I only see the activated ones. I’m calling CTFontManagerCopyAvailablePostScriptNames, but the same thing happens with -[NSFontManager availableFonts] and all similar functions/methods.
* When I activate a font with Font Book, it immediately becomes available in my app (and I get the appropriate notification saying it’s been added). But until then I can’t tell that it exists.

I’m writing an app whose purpose is previewing fonts, so I want to be able to show disabled fonts and let the user preview & enable them. How can I do this?

—Jens
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: Cocoa class extension best practice
  • Next by Date: Core Data Persistent Store for ODBC
  • Previous by thread: UITextView created programmatically, allowing selection but no edit, ios6+
  • Next by thread: Core Data Persistent Store for ODBC
  • Index(es):
    • Date
    • Thread