🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20964

Re: Font Kerning

#20964
From: Olav Kvern
Date: Wed, 22 May 2002 06:55
11 lines
1317 bytes
GeekGod-- 

The "double find" thing is especially cool. It works because Search returns text objects, and text objects themselves have the Search method. Really mind-boggling find/change constructions are possible using this technique. 

The above technique could be expanded to cover a much wider range of kerning pairs--the performance is pretty good. 

Just remember that if you're doing something to the found text items that adds or subtracts characters (or inserts graphics, tables, or inline frames, etc.) you should iterate through the objects *backwards* to keep from invalidating the text references in the found items collection. 

Thanks, 

Ole
Technical Details
Message-ID: <ef8a380.6@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <ef8a380.-1@WebX.aaQKaf7vad4>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,43681bc4250ba732
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-05-22 00:07:47 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Font Kerning
Message-ID: <ef8a380.6@WebX.aaQKaf7vad4>
Date: Tue, 21 May 2002 23:55:43 -0700
References: <ef8a380.-1@WebX.aaQKaf7vad4>
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit