Copy link to clipboard
Copied
Copy link to clipboard
Copied
app.findChangeTextOptions.wholeWord = false;
app.findChangeTextOptions.caseSensitive = true;
app.findChangeTextOptions.includeFootnotes = true;
app.findTextPreferences = null;
kern ("a\u00AF", -360, 20);
kern ("e\u00AF", -340, 10);
// Enter more pairs here
function kern (pair, kern_value_1, kern_value_2)
{
app.findTextPreferences.findWhat = pair;
var f = app.activeDocument.findText();
for (var i = 0; i < f.length; i++)
{
f.insertionPoints[1].kerningValue = kern_value_1;
f.insertionPoints[2].kerningValue = kern_value_2;
}
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now