Property:
font:
10px Arial
11px Arial
12px Arial
13px Arial
14px Arial
15px Arial
16px Arial
17px Arial
18px Arial
19px Arial
20px Arial
30px Arial
50px Arial
100px Arial
200px Arial
300px Arial
500px Arial
Canvas:
your browser does not support the canvas tag
Code:
var c=document.getElementById('myCanvas');
var ctx=c.getContext('2d');
ctx.font=
'10px Arial'
;
ctx.fillText('Hello World', 10,100);
Click the property values above to see the result
w3ii.com
- Play it