Highlighted

Change font size dynamically

New Here ,
Jan 15, 2019

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.

TOPICS
Discussions

Views

94

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Change font size dynamically

New Here ,
Jan 15, 2019

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.

TOPICS
Discussions

Views

95

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jan 15, 2019 0
Adobe Community Professional ,
Jan 15, 2019

Copy link to clipboard

Copied

Why not just change the scale?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 15, 2019 0
New Here ,
Jan 15, 2019

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 15, 2019 0
ClayUUID LATEST
Adobe Community Professional ,
Jan 15, 2019

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;

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 15, 2019 0
New Here ,
Jan 15, 2019

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 15, 2019 0