Skip to main content
Known Participant
June 18, 2020
Question

Photoshop script needed

  • June 18, 2020
  • 1 reply
  • 790 views

Please anyone advice is it possible to change the font in the character style using photoshop javascript.

This topic has been closed for replies.

1 reply

Legend
June 18, 2020

var docRef = activeDocument;

var LayerRef = docRef.artLayers[0];
if(LayerRef.kind == LayerKind.TEXT){
var TextRef = LayerRef.textItem;
TextRef.font = 'Calibri';

}

Rocky@Author
Known Participant
June 18, 2020

Thanks for your code!

Actually, Im looking eventually to update or change the font, fontstyle size in the character style(bold, italic etc.,) using script.

 

 

 

Legend
June 18, 2020

Adobe covers all the text properties in the Photoshop Scripting documentation.
https://www.adobe.com/devnet/photoshop/scripting.html