News for hackers. Stuff that matters.
Re:Unbluring web font icons: Response to GitHub's Octicons post by ErikHuisman on Sunday July 01, 2012 @03:12PM (#4185788)
On the iPad3 canvas looks blurry, the normal rendering looks sharp.. Maybe best to make it conditional?
Re:Unbluring web font icons: Response to GitHub's Octicons post by bensummers on Sunday July 01, 2012 @04:00PM (#4185938)
Absolutely. If I deploy something like this, it'll only do the canvas rendering on non-WebKit browser.
Re:Unbluring web font icons: Response to GitHub's Octicons post by bla2 on Sunday July 01, 2012 @04:23PM (#4186016)
canvas is inconsistent on webkit too. On iOS you need to create the element at twice the size because canvas size == backing size, while Safari/Mac "transparently" does this (and breaks direct pixel access). Chrome/Mac hasn't made up their mind which model to follow.

You need to look at both window.devicePixelRatio and canvasContext.webkitBackingStorePixelRatio to detect if you need to do manual pixel-doubling.