Drawing Text on Canvas: HTML5
Satish B
http://technotip.com/3241/draw-text-on-canvas-html5/
Today lets learn how to draw text / string on a canvas, using HTML5.
It's similar to drawing any other paths. You can fillStyle, strokeStyle on them. But the text on canvas can not be directly affected by a cascading style sheet.
Drawing Text: Syntax context.fillText(myString, x-axis, y-axis, [maximumWidth-of-text]); context.strokeText(myString, x-axis, y-axis, [maximumWidth-of-text]);
2020-07-21
0.0 LBC
Copyrighted (contact publisher)
59431201 Bytes