Write on Canvas independent of it's size dimensions | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Write on Canvas independent of it's size dimensions

When i write text on a canvas, it is dependent of the width and height. When i strech the canvas to the right, it affects the font. How can I avoid this?

28th Mar 2018, 9:27 AM
Manuel 48
Manuel 48 - avatar
1 Answer
+ 3
2 ways of setting dimensions in canvas and how they affect the looks, an awesome explanatory code by Kirk schafer that's y we resize the canvas after defining it i.e example canvas.width = 400 ; canvas.height = 600; https://code.sololearn.com/WETCkRaPNVhy/?ref=app more discussions on canvas here https://www.sololearn.com/discuss/1104654/?ref=app
28th Mar 2018, 4:13 PM
Morpheus
Morpheus - avatar