<html>
<head>
</head>
<body>
<canvas id="canvas" width="600" height="300"></canvas>
</body>
<script>
var ctx = document.getElementById('canvas').getContext('2d')
ctx.translate(100,100)
ctx.font = "bold italic 30px sans-serif"
ctx.strokeText("Привет Хабр",0,0)
ctx.rotate(45*Math.PI/180)
</script>
</html>