text-subpixel-1-ref.html (270B)
1 <!DOCTYPE HTML> 2 <html> 3 <body style="background:white"> 4 <canvas id="c" width="500" height="500"></canvas> 5 <script> 6 var ctx = c.getContext('2d'); 7 ctx.fillStyle = "black"; 8 ctx.font = "50px sans-serif"; 9 ctx.fillText("Hello", 200, 200); 10 </script> 11 </body> 12 </html>