1 Reply Latest reply on Aug 20, 2010 12:44 AM by Kasyan Servetsky

    text strokeWeight InDesign CS4 js

    Yuliaart Level 1

      Hi,

       

      When I return text strokeWeight when it set to some value - I receive correct value, but when there is no stroke, it gives me value 1 instead of 0:

       

      var myTextStroke = myTextFrame.texts.item(0).strokeWeight;
      

       

       

      What can I do?

       

      Thank you.

      Yulia

        • 1. Re: text strokeWeight InDesign CS4 js
          Kasyan Servetsky Level 5

          I don't know why this happens, but my guess is that this is the default value of stroke for text. By default, when you create a text in InDesign, swatch None applied to its stroke and 0 pt weight (as seen in Stroke panel); but when you apply another swatch the stroke is set to 1 pt — I think scripting just reflects this behavior in UI.

           

          Kasyan

          1 person found this helpful