Article View: adobe.scripting.indesign
Article #15393Re: COnverting Optical Kerning to Manual Kerning
From: Peter_Kahrel
Date: Tue, 02 Dec 2003 11:49
Date: Tue, 02 Dec 2003 11:49
15 lines
1163 bytes
1163 bytes
Malcolm, The code below gives you the kerning value of the characters left and right of the insertion point. This works for both optical kerning and metrics kerning. You'd have to add code to go through the text and collect all values found. Peter _p = app.selection[0]; _story = _p.parentTextFrame.parentStory; _index = _p.index; _chL = _story.characters[_index-1].contents; _chR = _story.characters[_index].contents; _kv = _p.kerningValue; alert( _chL + " " + _chR + " " + _kv )
Technical Details
Message-ID:
<2ccea045.2@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccea045.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,d8ec086d63779141 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-12-02 04:07:34 PST From: Peter_Kahrel@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: COnverting Optical Kerning to Manual Kerning Message-ID: <2ccea045.2@webx.la2eafNXanI> Date: Tue, 2 Dec 2003 03:49:35 -0800 References: <2ccea045.-1@webx.la2eafNXanI> Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit