I'm a little confused about how the text of the canvas element smooths the text and hope you all can help.
In the following screenshot, the top βQuick Brown Foxβ is an H1 element, and the bottom is a canvas element with the text displayed on it. Below you can see that both "F" are located side by side and enlarged. Note that the H1 element blends better with the background:

Here is the code I'm using to render canvas text:
var canvas = document.getElementById('canvas'); if (canvas.getContext){ var ctx = canvas.getContext('2d'); ctx.fillStyle = 'black'; ctx.font = '26px Arial'; ctx.fillText('Quick Brown Fox', 0, 26); }
Is it possible to make the text on the canvas so that it looks identical to the H1 element? And why are they different?
html5 text canvas antialiasing subpixel
Matt Mazur Dec 29 '10 at 1:50 2010-12-29 01:50
source share