Re: Illustrator adds an extra return
Re: Illustrator adds an extra return
- Subject: Re: Illustrator adds an extra return
- From: "Leah Zagreus" <email@hidden>
- Date: Tue, 23 Jan 2001 10:54:48 -0800
Hello,
I got the code from Jason and verified that there is indeed a bug
here. Thank you for reporting it! Apparently there's a problem with
setting the position of the text art item prior to changing the font
of the text.
I'll investigate the bug, but meanwhile here's a workaround. Do the
position change after setting the font. So, change this:
---------------------------------
tell application "Adobe Illustrator. 9.0.2"
activate
tell document 1
set wwwcomText to make new text art item at beginning
with properties ,
{contents:"www.eMarketer.com", name:"wwwcom",
position:{((8.5 * 72) - 374) / 2, (11 * 72) / 2}, kind:point text}
set properties of text of wwwcomText to
{font:"VectoraLH-Roman", size:36, stroked:false, filled:true}
set font of text from character 5 to character 13 of
wwwcomText to "VectoraLH-Black"
end tell
end tell
---------------------------------
To this:
---------------------------------
tell application "Adobe Illustrator. 9.0.2"
activate
tell document 1
set wwwcomText to make new text art item at beginning
with properties ,
{contents:"www.eMarketer.com", name:"wwwcom",
kind:point text}
set properties of text of wwwcomText to
{font:"VectoraLH-Roman", size:36, stroked:false, filled:true}
set font of text from character 5 to character 13 of
wwwcomText to "VectoraLH-Black"
set properties of wwwcomText to {position:{((8.5 *
72) - 374) / 2, (11 * 72) / 2}}
end tell
end tell
---------------------------------
Hope this helps.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Leah Zagreus
Member of Technical Staff
Illustrator Quality Engineering
email@hidden
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~