Copy link to clipboard
Copied
Hi, I have created a page using AnimateCC HTML5 canvas with different text fields with different sizes and the page is loaded in html file, i would like to increase font size of total content by 1px when user clicks a button which is placed in main html file. How can i access the text fields and change the font size dynamically.
Copy link to clipboard
Copied
Why not just change the scale?
Copy link to clipboard
Copied
Hi, Images will also be part for page, if i use scale, then images will also scale, so i want to change the font size only.
Copy link to clipboard
Copied
vamshik19145210 wrote
Hi, Images will also be part for page, if i use scale, then images will also scale, so i want to change the font size only.
I mean just change the scale of the textfield directly.
this.myTextField.scaleX = 1.1;
this.myTextField.scaleY = 1.1;
Copy link to clipboard
Copied
Hi Clay, the reference site link i can share you, User can click on A- & A+ buttons to increase & decrease the font size. The link is: gov.sg | Home