Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.