4 Replies Latest reply on Apr 18, 2013 11:40 AM by doekewartena

    [basiljs] set text properties of overflow text

    doekewartena

      When i change the pointSize or any other propertie then only the text that is visible get's changed.

      The text in the overflow is not.

       

      How can i effect all text?

       

       

      #includepath "~/Documents/;%USERPROFILE%Documents";

      #include "basiljs/bundle/basil.js";

       

       

      function setup() {

             b.units(b.MM);

        }

       

       

      function draw() {

         var t = b.text("sad", 20, 20, 100, 200);

          t.contents = TextFrameContents.placeholderText;

          b.itemHeight(t, b.itemHeight(t)/2);

          b.typo(t, "pointSize", 4);   

          b.itemHeight(t, b.itemHeight(t)*2);

      }

       

      b.go();