Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Font replacement

$
0
0

Hi,

 

     I'm changing one font to another font by using the below codes with iteration of stories and textRanges.  But its not replacing this font("Euclid"). When I used "Helvetica" instead of "Euclid", its working. But its not working for "Euclid" font. It does not throw any error.  Its returning Cnt correctly but the same font is retaining after replaced to the new font.

 

 

 

     var repFont = "Euclid";

     var txtRanges = cStory.textRanges;

     for(var txtRg = 0; txtRg < txtRanges.length; txtRg++)

     {

          txtRanges[txtRg].textFont = app.textFonts.getByName(repFont);

          Cnt++;

     }

 

     I dono the issue.  can anyone help me..

 

- Sudha K


Viewing all articles
Browse latest Browse all 12845

Trending Articles



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