Skip to main content
Participant
January 15, 2019
Question

Change font size dynamically

  • January 15, 2019
  • 1 reply
  • 297 views

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.

This topic has been closed for replies.

1 reply

Legend
January 15, 2019

Why not just change the scale?

Participant
January 15, 2019

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.

Legend
January 15, 2019

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;