Find BulletChar Font
hi forum,
how find buletcharacter font name.
the below script, find font name of text wherever bullet styles applied. (eg.)
• fjldfjdf
• dklfjdlfjd
app.findgreppreferences.bulletsandnumberinglisttype = listtype.bulletlist;
//app.findgreppreferences.appliedfont = "arial";
myfound = app.findgrep();
for (i=0 ; i<myfound.length; i++) {
alert (myfound[i].appliedfont.name)
}
my intention find font name of bullet added (using paragraph----bullet , numbering---add (button)--add bullets----selecting font family...in dropdownlist).
please check screenshot attached.
thanks forum.
also tried using this.
app.findgreppreferences.bulletsandnumberinglisttype = listtype.bulletlist;
myfound = app.findgrep();
for (i=0 ; i<myfound.length; i++) {
alert (myfound[i].bulletchar.bulletsfont)
}
now alert is:
screenshot "the paragraphs has usual bullet , numbering style.
this screenshot "bullet has been added manually using font zapf dingbats font".
the script finds bulletchart.bulletfont , declare auto_value normal bullets , [object font] bullets added using zapf dingbats fonts.
how i, font name "zapf dingbats" alert instead of [object font].
More discussions in InDesign Scripting
adobe
Comments
Post a Comment