Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Font Checking



Does anyone have a suggestion for properly finding all fonts installed on the system? I am using the following code to check for fonts installed on the system:

set sharedFontManager to call method "sharedFontManager" of class "NSFontManager"
set allFonts to (call method "availableFonts" of sharedFontManager) as list


My issue is that if a font has been recently installed or deleted this function doesn't see the change right away. My application checks for certain fonts to be installed and if they are missing it runs an installer. This works great except that if I relaunch my application it thinks the fonts are still missing and so the installer runs again. If I reboot the system then it finally sees them and acts normal. I would like to prevent the user from having to reboot just because a font was installed.

Thanks for any suggestions.

Cory
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.