News for hackers. Stuff that matters.
Re:Show HN: X-spreadsheet – A JavaScript canvas spreadsheet ... by dustingetz on Monday January 28, 2019 @01:52PM (#19020025)
The canvas fonts are fuzzy? Stock OSX and Chrome, 4k display @ 3200 scaled

edit: https://github.com/myliang/x-spreadsheet/issues/5

Re:Show HN: X-spreadsheet – A JavaScript canvas spreadsheet ... by c-smile on Monday January 28, 2019 @04:04PM (#19021068)
By nature of <canvas>, it uses grayscale antialiasing of text

Here (MS Edge, Windows, High-DPI screen):

http://cloud.sciter.com/index.php/s/fcTbout1oQqwIJg

You see how different text rendering in normal DOM rendering (text "Normal") and the text inside canvas.

Grayscale AA text looks blurred. Grayscale AA works only for relatively large font sizes, for standard UI text sizes it is highly non-desirable.

Re:Show HN: X-spreadsheet – A JavaScript canvas spreadsheet ... by bijection on Monday January 28, 2019 @05:55PM (#19021887)
Although canvas does do grayscale anti-aliasing, this particular app is blurry because the canvas is being rendered at a lower resolution than your screen. To make it crisp, the author would have to set the canvas' javascript canvas.width property to be twice the canvas' css canvas.style.width property.
Re:Show HN: X-spreadsheet – A JavaScript canvas spreadsheet ... by c-smile on Monday January 28, 2019 @09:15PM (#19023099)
Yes, oversampling will reduce blurriness but it will be there anyway. ClearType is there for the purpose.

Yet all that with the price of memory and CPU consumption - number of pixels to rasterize on 192 PPI monitor is four times of the one with "standard" 96 PPI.

Re:Show HN: X-spreadsheet – A JavaScript canvas spreadsheet ... by Avery3R on Tuesday January 29, 2019 @07:32PM (#19031416)
It's not oversampling, it's native sampling. On high DPI displays browsers automatically apply a zoom to the page, so the canvas ends up being a smaller size that gets blown up. You have to detect this and create the canvas bigger to begin with to counteract this.
Re:Show HN: X-spreadsheet – A JavaScript canvas spreadsheet ... by ronsor on Monday January 28, 2019 @06:37PM (#19022230)
Same on Windows 10 + Chrome with a high-DPI screen. All fuzzy.
Re:Show HN: X-spreadsheet – A JavaScript canvas spreadsheet ... by SamBam on Monday January 28, 2019 @02:56PM (#19020515)
I see it too. OSX 10.13.3, Chrome 71.0, 2880 x 1800px.
Re:Show HN: X-spreadsheet – A JavaScript canvas spreadsheet ... by JacobLinney on Monday January 28, 2019 @04:56PM (#19021478)
Same thing on Linux with Firefox 64.0 at 3840x2160
Re:Show HN: X-spreadsheet – A JavaScript canvas spreadsheet ... by myliang on Tuesday January 29, 2019 @11:58PM (#19032814)
fixed, test it
Re:Show HN: X-spreadsheet – A JavaScript canvas spreadsheet ... by dustingetz on Friday February 01, 2019 @10:53PM (#19060919)
Thanks I am going to try this out