I can\'t seem to be able to add text to a canvas if the text includes \"\\n\". I mean, the line breaks do not show/work.
ctxPaint.fillText(\"s ome \\n \\\\n
If you only need two lines of text, you can split them into two different fillText calls and give each one a different baseline.
ctx.textBaseline="bottom"; ctx.fillText("First line", x-position, y-position); ctx.textBaseline="top"; ctx.fillText("Second line", x-position, y-position);