[whatwg] Blurry lines in 2D Canvas (and SVG)

Glenn Maynard glenn at zewt.org
Thu Jul 25 07:05:12 PDT 2013

On Thu, Jul 25, 2013 at 12:24 AM, Rik Cabanier <cabanier at gmail.com> wrote:

Yes, that's what I had in mind: the developer detects the device pixel
> ratio and scales up the canvas so the pixels match.

That reduces to the simple case, then.  The pixel ratio gets out of the
picture entirely if you adjust the canvas so it's rendered 1:1 to pixels,
so the rules for getting hard edges are the same (half-pixels for strokes,
integer pixels for fills).

Glenn Maynard

More information about the whatwg mailing list