Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Photoshop Script change font

Participant ,
Jun 10, 2020 Jun 10, 2020

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

TOPICS
Actions and scripting
322
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Adobe