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.

 

 

 

Rocky@Author
Known Participant
June 19, 2020

If ExtendScript doesn't support something, you may have to use Action Manager code or workaround it another way. Not everything can be scripted.


Could you help me how to use the action manager code to apply for this requirement?