🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20266

Re: Horizontal scaling in InDesign multi-line composer

#20266
From: Adam Twardoch
Date: Fri, 02 Aug 2002 15:10
29 lines
2173 bytes
"Olav Kvern" <okvern@adobe.com> wrote in message

> But you can calculate the percentage using "out of the box" thinking
(i.e., sleazy hacking<g>). I don't know what platform you're using, but the
following approach (in pseudocode) would work:

Olav,

thank you for the suggestion! I work on Windows/VB. Could you help me with
some VB code?

In fact, what I would like to do, would be, provided the text is set in a
Multiple Master font with a width axis, and is full-justified:

1. Separate the lines in a story using hard line breaks (how can I do this?
:)
2. Left-justify each line and compare the width of the text (how can I do
this?)
3. Calculate the scaling factor for each line.
4. Now the difficult part: for each line, generate and register (install) an
MM instance of the Multiple Master font that would fit the scaled width (how
can I do this? I'd probably need to use the ATM API, but how?)
5. Assign the new MM instance to the respective line.

By using such approach, I could have "well-scaled" glyphs with no stem
scaling, so that the multi-composer "magic" would be preserved but also, the
even colour of the page would be maintained.

Adam
Technical Details
Message-ID: <0BC94FBB24A443DFCD1406DBC2F5DD67@in.WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <D44284DDE891D4FDB65955B14365DC58@in.WebX.aaQKaf7vad4> <ef9f499.0@WebX.aaQKaf7vad4>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,705f2a9e5dc8a3c4
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-08-02 08:42:09 PST
From: "Adam Twardoch" <list.adam@twardoch.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Horizontal scaling in InDesign multi-line composer
Message-ID: <0BC94FBB24A443DFCD1406DBC2F5DD67@in.WebX.aaQKaf7vad4>
Date: Fri, 2 Aug 2002 08:10:35 -0700
References: <D44284DDE891D4FDB65955B14365DC58@in.WebX.aaQKaf7vad4> <ef9f499.0@WebX.aaQKaf7vad4>
Lines: 30
Organization: Twardoch.com
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit