Property:
font:
normal 30px Arial
italic 30px Arial
oblique 30px Arial
Canvas:
your browser does not support the canvas tag
Code:
var c=document.getElementById('myCanvas');
var ctx=c.getContext('2d');
ctx.font=
'normal 30px Arial'
;
ctx.fillText('Hello World', 10,30);
Click the property values above to see the result
w3ii.com
- Play it