At 12:52 -0400 2001_07_10, Slava Paperno wrote:
>I need to display to the user the complete list of fonts installed
>on the system (Win and Mac). I use the fontList() method of an
>embedded font to get the list, which works fine.
>
>The problem is that the embedded fonts and the indentically-named
>system-installed fonts show up with the same name. When Director
>lists fonts, it marks the embedded ones with an asterisk.
>
>I could assume that all embedded fonts in my movie are on that list
>and delete their names, and then add them again with asterisks (or
>just omit them), but that's an assumption I would rather verify
>first.
>
>Is there a way to get the font list where the Director-embedded
>fonts wouldn't show up, or would show up marked in some way?
Reading your post again, and having actually looked at the fontlist
myself, I am confused by your statements.
In a movie where I have an embedded font, with the asterisk after its
name, both the original and the embedded font shows up in the
fontlist, with their exact respective names, ie. the original font
without an asterisk, and the embedded font with an asterisk.
So it would seem quite easy to filter out the embedded fonts, by
looking for the asterisk.
When Director embeds a font, it appends an asterisk by default.
Is your problem, that you have removed that asterisk, so that the
embedded font, actually shares its name with the original font? (I
guess not)
If you want to remove the embedded fonts from a fontlist, based on
the asterisk:
on removeEmbeddedFontsFromList aList
repeat with i = aList.count down to 1
if the last char of aList[i] = "*" then aList.deleteAt(i)
end repeat
return aList
end
Hmm... it just isn't very clear what your problem actually is.
Jakob
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]