Mathamatical Pi 1 font to Symbol Font conversion


hi all,

 

i trying change mahtamatical pi 1 multiplication sign (×)  symbol font. have used below script. not workig me. please me on this..

 

app.findtextpreferences = nothingenum.nothing;  app.changetextpreferences = nothingenum.nothing; app.findtextpreferences.appliedfont = "mathematical pi"; app.findtextpreferences.fontstyle = "1"; app.findtextpreferences.findwhat = "3"; app.changetextpreferences.changeto = "<00d7>"; var myresults = app.activedocument.findtext(); (i = 0; <= myresults.length - 1; i++)  {  myresults[i].appliedcharacterstyle = "symbols";  app.changetext(undefined, false, false, undefined,{},{}); } 

 

also trying change entire greek characters (alpha, beta, gamma, etc...) font mathamatical pi 1 symbol font. possible execute in loop??

 

thanks

m. karthik

you're mixing pre-cs3- , cs3+ styles. don't need loop change multiplication sign:

 

app.findtextpreferences = nothingenum.nothing;

app.changetextpreferences = nothingenum.nothing;

 

app.findtextpreferences.appliedfont = "mathematical pi";

app.findtextpreferences.fontstyle = "1";

app.findtextpreferences.findwhat = "3";

 

app.changetextpreferences.changeto = "<00d7>";

app.changetextpreferences.appliedcharacterstyle = "symbols";

 

app.activedocument.findtext();

 

as changing greek characters, how easy depends on whether greek characters mapped same font positions in math pi , symbol fonts. instance, math pi 'a' , symbol 'a' both alpha?

 

peter



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support