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

Re: InDesign Font Question


  • Subject: Re: InDesign Font Question
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 01 Mar 2006 09:22:57 +1100
  • Thread-topic: InDesign Font Question

On 1/3/06 4:00 AM, "Simon, Garry" <email@hidden> wrote:

> The second part is stumping me, because the font names returned in the script
> don't necessarily match the actual names of the fonts. For example, the script
> returns "Relay       Medium Italic" when the actual font name is
> "Relay-MediumItalic.AFM".
>
"Relay-MediumItalic.AFM" is not the name of the font -- it's the name of the
.AFM file of the font. InDesign uses the names of the font family and font
styling as encoded in the font files and displayed in the app.

> I could search for any file containing the words "Relay", "Medium", and
> "Italic", but there is one problem - there is a large space between the words
> "Relay" and "Italic" in the name returned by the script.
>
InDesign defines the name of a font as FamilyName<tab>FontStyle. The thing
you have to watch out for is that, for missing fonts, one or more extra
spaces get added to the end of the family name. So you need to use a tab as
TID, then strip any trailing spaces off the family name.


--
Shane Stanley <email@hidden>
AppleScript Pro Sessions NJ May 06 <http://www.scriptingmatters.com/aspro>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >InDesign Font Question (From: "Simon, Garry" <email@hidden>)

  • Prev by Date: Re: Entourage Exchange Calendar Scripting
  • Next by Date: Re: Three InDesign scripting questions (page item parent)
  • Previous by thread: Re: InDesign Font Question
  • Next by thread: Pressing a button
  • Index(es):
    • Date
    • Thread