• 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: Font Lists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Font Lists


  • Subject: Re: Font Lists
  • From: John W Baxter <email@hidden>
  • Date: Wed, 6 Dec 2000 10:02:28 -0800

At 10:45 +0100 12/6/00, Frank Watzl wrote:
>At 22:55 Uhr -0700 05.12.2000, Gene wrote:
>>Is there an easy way to get a list of the installed fonts on a given system?
>
>--tested with MacOS 9.0.4
>tell application "Finder"
> name of suitcases of fonts folder
>end tell
>

That provides (unless Finder is lying to us) a list of the names of the
font suitcase folder--as does

list folder (path to fonts)

That is not the same as the list of installed fonts, since multiple fonts,
including those completely unrelated to each other or the file's name, can
be in the same font suitcase.

To get a list of fonts would require either a Scripting Addition (which may
or may not exist yet) or an application which is willing to disclose the
list of available fonts (which may or may not exist). That hypothetical
application would probably give you the list after it is munged by Adobe
Type Ruination (Reunion...my name better reflects what it does to the
stability of a Macintosh).

It looks as if Style (1.6) would be willing to give you the list, with
something like
tell application "Style"
set fontlist to {}
repeat with f in (menu items of menu "Font")
set end of fontlist to name of f
end repeat
end tell
--fontlist is the list of names

But this is MUCH faster, as expected:
tell application "Style"
set fontlist to name of menu items of menu "Font"
end tell
--fontlist is the list of names

Getting the list at the C (or other) code level is trivial (one system
call). That call is found in any application with a working Font menu
(it's part of the means of populating the Font menu.

--John
--
John Baxter email@hidden Port Ludlow, WA, USA


  • Follow-Ups:
    • Re: Font Lists
      • From: Shane Stanley <email@hidden>
References: 
 >Font Lists (From: Gene <email@hidden>)
 >Re: Font Lists (From: Frank Watzl <email@hidden>)

  • Prev by Date: Re: Idle Help
  • Next by Date: Error -415 when setting File Sharing
  • Previous by thread: Re: Font Lists
  • Next by thread: Re: Font Lists
  • Index(es):
    • Date
    • Thread