6 Replies Latest reply on Feb 15, 2017 9:42 AM by TapLuke

    Changing font size of dynamic text in HTML5 canvas

    TapLuke Level 1

      Hi everyone,


      how do you dynamically change the text size of the dynamic text, back in the AS days there was TextFormat() and TextField.setTextFormat() to call the text size that you defined.


      How would you go about doing it in for HTML5 with JS for Animate CC?


      I would also be happy if anyone would know how you can access the font size, for example there are

      this.mytext.text to access the content

      this.mytext.lineHeight to access the line height


      Is there a way to get a hold of the font size? I tried




      But they all did not work.


      I hope anyone can help,