Subject: Re: Choose Font Date: March 30, 2008 4:44:33 PM PDT
No. All I need is a way to get a properly spelled name of a font and a size. Then I use this to set a document window in Smile or Script Editor. My current workaround is to let the user type the name of a font. Script Editor has a fatal problem if the font is not spelled correctly. (Smile simply punts and uses Lucida Grande!)
If I understand the question, this would give you the font names for whatever font families you provide.
---------
set postScriptNames to FontsToUse({"Courier", "Courier New", "American Typewriter"}) choose from list postScriptNames
on FontsToUse(fontFamilies) tell application "Font Book" launch set postScriptNames to {} repeat with thisFont in fontFamilies set fontTypeFaces to typeface of font family thisFont repeat with thisPS in fontTypeFaces set the end of postScriptNames to PostScript name of thisPS end repeat end repeat end tell return postScriptNames end FontsToUse
------------
=
|