Hi Nikaj,
I had to do a similar thing some time ago because a client requested
that multiplication symbols not be simple 'x' characters, but rather
small centered x's only available in the PC Symbol font.
Basically, it looked for a specific character (in this case,
numToChar(215)), and changed the font on that character. You could
store all of your Euro symbols as a special string such as '€' and
then replace the '€' with the corresponding letter in your font,
and then change the font.
I spent all of 5 minutes slapping together this script, and although it
would probably be bettew written looping in reverse, this should be
modifiable to do the trick for you.
On ConvertChar(castMember)
-- Check for multiplication signs
mLoc = offset(numToChar(215), member(castMember).text)
mLocLast = 1
repeat while mLoc > mLocLast
member(castMember).char[mLoc].font = "Symbol *"
mLocLast = mLoc
mLoc = offset(numToChar(215), member(castMember).char[mLocLast +
1..member castMember).text.length])
mLoc = mLoc + mLocLast
end repeat
End
HTH
Brian Romanko
Lead Developer - Neo/SCI Corporation
Member - Greater Rochester Macromedia User Group
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
Behalf Of Nikaj Wiggers
Sent: Monday, July 23, 2001 7:54 AM
To: [EMAIL PROTECTED]
Subject: <lingo-l> Font issue
Hi List,
Long time ago :-)
I have the following problem:
I am making a program in 12 languishes. The problem I encountered was
that i had to use a differed font for the Greek languish because it has
special characters. The problem is that in this font the EURO-sign is
not supported so I want to do a query in the text for the symbol that
UB-Helvetica uses for the EURO-sign end change the font for this
character to Arial. Is it possible to change the font for just one
character in a text field? if NOT can I copy a EURO-sign from another
castmember were it is in the right font (Arial) and copy it into the
textcastmember and then it keeps the settings of that specific
character?
I hope that somebody has a solution.
T.I.A.
Nikaj Wiggers
Araneum Interactive Productions
Tussen de Bogen 113
1013 JB Amsterdam
T: +31 20 6706707
F: +31 20 6706701
M: +31 654725584
www.araneum.nl
[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!]
[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!]