Members Only

Script of the Month: Adjust Kerning

Take control of the kerning in your InDesign documents with this powerful script

This article appears in Issue 150 of InDesign Magazine.

InDesign Magazine issue 150 coverThis article appeared in Issue 150 of InDesign Magazine.

It’s safe to say that few InDesign users who made the switch from QuarkXPress ever regretted it. But there are some important features that QuarkXPress has offered for decades that InDesign still lacks. Take kerning, for example. Sure, you can manually kern text in InDesign to your heart’s delight. You can even apply some limited kerning to text via character styles. But a much more powerful solution is to define kerning pairs to automatically adjust the spacing between specific characters in specific fonts. Sadly (and rather inexplicably), InDesign has never offered the ability to edit kerning pairs. Fortunately, there’s a powerful scripted solution.

The script was written by Peter Kahrel, and you can download it and read the full set of instructions here at CreativePro.

To use the script, you first need to set up plain text files named for the fonts whose characters you wish to kern. In those text files, you put the names of the font style (e.g., regular, bold, italic) followed by the kerning instructions. Each set of instructions includes a character pair followed by the kerning value you wish to apply between those characters.

An example of bad default kerning. The words "waves" and "papa" set in the font Josefin Slab Bold

Default kerning in Josefin Slab Bold and Italic, before running the script

A text file used by the Adjust Kerning script to fix bad default kerning in Josefin Slab Bold and Italic fonts

height=”277″ /> Text file used to apply kerning between five character pairs in two different styles

Improved kerning in he words "waves" and "papa" set in the font Josefin Slab Bold achieved by use of the Adjust Kerning script in Adobe InDesign

Custom kerning in Josefin Slab Bold and Italic applied by the script

The script also offers advanced features that go way beyond what you can do with simple kerning pairs, such as the use of GREP wildcards, kerning characters in different styles, kerning the first character in a paragraph, kerning a series of identical characters, and kerning across spaces. There’s even a method for harvesting kerning data from manually kerned text. 

If you regularly find yourself kerning text in InDesign (or don’t because it’s too much hassle), you need this script!

Bookmark
Please login to bookmark Close

Not a member yet?

Get unlimited access to articles and member-only resources with a CreativePro membership.

Become a Member

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *