Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: character + appliedFont

$
0
0

Hi artCraf2,

 

Please try the below JS code. This is simple way to find the specific character with respective font name not font style (bold, italic), If you want just add the font style.

 

 

app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
app.findTextPreferences.findWhat = "•";
app.findTextPreferences.appliedFont = "Courier New";//If you want find a bullet character along with bold format use the below line. above line is only for font name.//app.findTextPreferences.appliedFont = "Courier New\tBold";
var myFindFont = app.activeDocument.findText();for(var i=0; i<myFindFont.length; i++){    alert ("Defults Fonts found, convert to Anyother")    }

 

thx,

csm_phil


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>