How to resize canvas with Animated Text on it?

Good evening everyone I am new to this site so forgive me for any mistake I have made.

I am practice on this project and I want to add one more letter at the end like ‘N’ or symbol like ‘!’. I cannot find the way to do this. I tried a lot of things like:

  • I change the width from css
  • I change the width from javascripts
  • I change and test a lot of things from javascript file and I did a lot of combinations between css file and javascript

But all of this is wrong. It spoils me and confuses my text in output. When I cahnge the width from css file it makes the canvas with the text bigger but not the size to add one more letter at the end.
What must i change to add one more digit at the end?
Thank you!