How do I find deactivated fonts?
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