11 Replies Latest reply: Nov 5, 2014 1:14 PM by mecastro RSS

    Script:  Adjust tracking (character spacing) of text

    photodrawken Community Member

      PSE doesn't show the user all the text formatting capabilities available in PhotoShop, but this script can alter the tracking (character spacing) of the text on a layer.

       

      Here are the steps to use the script:

       

      1. Open Notepad.
      2. Copy this text and paste it into Notepad:

        /*
        <javascriptresource>
        <name>Character Tracking</name>
        <enableinfo>true</enableinfo>
        <menu>automate</menu>
        <about>Adjust the kerning.</about>
        <category>Typography</category>
        </javascriptresource>
        */

      var targettext = app.activeDocument.activeLayer.textItem
      targettext.tracking = 30

       

      1. Use "Save As" with the File Type of "All Files" to save it as
        Character tracking.jsx
        in the
        C:\Program Files (x86)\Adobe\Photoshop Elements 10\Presets\Scripts
        directory.
      2. Keep the .JSX file open in Notepad.
      3. Start PSE.  You'll have a new menu item:  File...Automation Tools...Character Tracking.
      4. Create a document in PSE with some text on a text layer.
      5. With a text layer selected, run the Character Tracking script.
      6. To adjust the tracking, simply switch to Notepad and change the numeric value after the equals sign, save the file and re-run it in PSE.  (No need to close and re-open PSE.)

       

       

      You can use negative values, too -- any number between -1000 and 10000 is OK.

       

      For example, here's the original:

      character tracking original.png

       

      Here the tracking was set to -50:
      character tracking m50.png

       

      And here the value was 300:
      character tracking p300.png

       

      It works on paragraph text as well.

       

      Enjoy!

       

      Ken