Here’s how to get some text drawn on the HTML5 canvas.
var canvas = document.createElement("canvas");
var context = canvas.getContext("2d");
context.font = "12pt Georgia";
context.fillText("I love HTML 5", 5, 5);
fillText(textToDraw, x, y)
@params textToDraw – The text to be rendered on the canvas
@params x – The x-coordinate of the starting point to render the text
@params y – The y-coordinate of the starting point to render the text