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 protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to