Code
Execute
<!DOCTYPE html> <html> <head> <title>Wikitechy-HTML Canvas font</title> </head> <body> <h1>Wikitechy HTML Canvas font with example:</h1> <canvas id="wikitechyCanvas" width="650" height="200" style="border:1px solid #d3d3d3;"></canvas> <script> var g = document.getElementById("wikitechyCanvas"); var asd= g.getContext("2d"); asd.font = "50px Times New Roman"; asd.fillText("welcome to wikitechy.com", 50, 100); </script> </body> </html>
Result