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.