Article View: adobe.scripting.indesign
Article #2545line (or paragraph) endHorizontalOffset bug??
From: Bob Stucky
Date: Wed, 10 Dec 2008 19:46
Date: Wed, 10 Dec 2008 19:46
29 lines
1728 bytes
1728 bytes
Here's an interesting one: It seems that CS3 has a bug in endHorizontalOffset. I have 2 paragraphs/lines (single line paragraphs) in a small frame, one has a font size of 9.5, the second para's font size is 8.5. I am left justifying both para's and then centering the shorter one on the longer using leftIndent. It works fine when the lines are not close in length. When they are close, IDCS3 seems to be providing the incorrect values of the endHorizontalOffset. It seems to be corrected in CS4. But can anyone think of an effective workaround for CS3?? Bob Measurement output from CS4 f.paragraphs[ 0 ].endHorizontalOffset Result: 2.59210814370049 f.paragraphs[ 1 ].endHorizontalOffset Result: 2.59809954961141 Measurement output from CS3 f.paragraphs[ 0 ].endHorizontalOffset Result: 2.60508728027344 f.paragraphs[ 1 ].endHorizontalOffset Result: 2.60159341494242 CS4 has line 1 (the second line) at about 0.006 inch longer the first line (line 0). This is correct visually. CS3 has the first line being longer than the second by .004 inch, which is visually incorrect. CS3 and CS4 do not even agree on the end offset in any case.
Technical Details
Message-ID:
<59b73c41.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,3c7ff808858e6033,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Bob Stucky" <rstucky@starband.net> Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: line (or paragraph) endHorizontalOffset bug?? Message-ID: <59b73c41.-1@webcrossing.la2eafNXanI> Date: Wed, 10 Dec 2008 11:46:29 -0800 Lines: 37 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit