I am trying to put a text inside of canvas. The HTML code of the canvas: <canvas id="leaderboard2" style="position: fixed; right: 1250px; top: 140px; width: 230px; height: 330px;"></canvas>
. I tried using this code below to add the text "test" in the canvas, but the text keeps on getting deformed. This is what the output looks like (sorry, I know it is very had to see)
var canvas = document.getElementById("leaderboard2");
var context = canvas.getContext("2d");
context.fillStyle = "blue";
context.font = "bold 16px Arial";
context.fillText("Test", 100, 100 );