#myCanvas
textBaseline
'alphabetic'|'bottom'|'hanging'|'ideographic'|'middle'|'top'
=
ctx.moveTo(5,50);
ctx.lineTo(200,50);
ctx.stroke();
ctx.textBaseline=#val;
ctx.font='30px Arial';
ctx.fillText('Hello World',20,50);
Watch a demo of different values of the .