Skip to main content
Inspiring
June 10, 2020
Question

Photoshop Script change font

  • June 10, 2020
  • 0 replies
  • 347 views

I need to use 2 fonts so that I can use some technical symbols, the issue is that I am having to create 2 text layers, 1 for each font - is there a simple way of switching between fonts on a layer, my code looks like this;

 

		text_layer.textItem.size = fontSize;	
		text_layer.textItem.font = fontName2;
		text_layer.textItem.contents =  " q "
		+ "\r" + "  "
		+ "\r" + " $ "
		+ "\r" + "1 "
		+ "\r" + " H "  
		+ "\r" + " \u00C2 " 
		+ "\r" + " i " 
		+ "\r" + " \u002E "; 	

 

Ideally I want so that I can use a symbol from fontName 2 at the start of a line and then switch to fontName1 for the rest of the line and then on the nect line repeat for as many lines as I have.

Many thanks

Mike

This topic has been closed for replies.