🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15935

AS-2.0.2-Horizontal Scaling of Text

#15935
From: Peter_Truskier
Date: Wed, 05 Nov 2003 16:51
11 lines
1160 bytes
I am writing a routine to "shrink-to-fit" text in a text frame by reducing the horizontal scaling. Here's some code - ("theFrame" is a previously-declared text frame)

tell theFrame
    repeat until overflows is false
        tell every text to set horizontal scale to 0.99 * horizontal scale
    end repeat
end tell

This seems to work mahvelously except after it is done, each of the obviously scaled characters still indicate "100%" horizontal scaling in the character palette when highlighted.

What am I missing?
Technical Details
Message-ID: <2cce3956.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,c53fbda946236634,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-11-05 09:08:08 PST
From: Peter_Truskier@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.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: AS-2.0.2-Horizontal Scaling of Text
Message-ID: <2cce3956.-1@webx.la2eafNXanI>
Date: Wed, 5 Nov 2003 08:51:49 -0800
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit