Quantcast
Channel: Adobe Community : Discussion List - Illustrator Scripting
Viewing all articles
Browse latest Browse all 3671

How to insert a different font in one text frame

$
0
0

Hi

 

I have text frame, I want to insert two information with two different font and font size.

 

example: My name is YYYY

 

My name is  - Arial

YYYY - Verdana.

 

 

var height = 100;

 

var f = new File("/Users/test/Desktop/NAME.ai");

var doc = app.open (f)

var text1 = doc.textFrames.pointText( [10,-height+10] );

text1.contents = "My name is YYYY";

 

Thanks in Advance


Viewing all articles
Browse latest Browse all 3671


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>