Skip to main content
Participant
April 11, 2008
Question

How to set italic to a text frame with a JS script

  • April 11, 2008
  • 1 reply
  • 698 views
Hello guys,

I'm a java developper, and for my customer I have to generate some JS scripts for Illustrator CS3/Windows XP.

In my use case, I need to layout several textframes. Some need to be "bolded", some others have to be underlined, and some need to be italic.

I found how to set the bold and underline attributes, but for the italic, I can't see any option related to it. I saw the "CharacterAttributes#italics" property, but the description is a bit odd: "If true, the Japanese OpenType
font supports italics."... it doesn't fit my needs...

Is it possible to make a text italic with a JS script in Illustrator?
This topic has been closed for replies.

1 reply

Larry G. Schneider
Community Expert
Community Expert
April 11, 2008
You will have to use the proper italic form of the font. AI does not support Faux italic or bold.