Changing font size of dynamic text in HTML5 canvas
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
this.mytext.fontSize
this.mytext.size
But they all did not work.
I hope anyone can help,
Thanks.
edited
