• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Choose Font
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Choose Font


  • Subject: Re: Choose Font
  • From: Ed Stockly <email@hidden>
  • Date: Sun, 30 Mar 2008 19:49:27 -0700

From:   email@hidden
Subject: Re: Choose Font
Date: March 30, 2008 4:44:33 PM PDT
To:   email@hidden


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

------------

=
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Choose Font (From: Luther Fuller <email@hidden>)
 >Re: Choose Font (From: Michelle Steiner <email@hidden>)
 >Re: Choose Font (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Choose Font
  • Next by Date: Re: [Sappho] I'm SO MAD
  • Previous by thread: Re: Choose Font
  • Next by thread: Re: Choose Font
  • Index(es):
    • Date
    • Thread