event.target.textFont


event.target.textfont = font.arial;

 

this code, how fix "arial black" font in text field , using in "custom calculation script".

 

can this.

you'll want put script in custom format script , custom fonts addressed name, not font object.

 

example:

this.getfield("myfield").textfont = "viva-regular";



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

Adobe InDesign CC 2017 has stopped working

Extracting portions of an image

shape alpha vs layer alpha in cc library