HNHacker News
TopNewBestAskShowJobs

wjd

200 karma · joined January 30, 2012

http://wdobbie.com
submissionscomments
wjd··on Show HN: War and Peace and WebGL
Should be fixed now!
wjd··on Show HN: War and Peace and WebGL
The .bmp file is served gzipped to 7 MB.

LZMA and Bzip2 both get it down to about 3 MB but I'd need to use a javascript decompressor.

wjd··on Show HN: War and Peace and WebGL
Loaded up linux and I got the same issue. Working on it!
wjd··on Show HN: GPU text rendering with vector textures
Subpixel rendering isn't implemented in the demo but just requires running the calculations three times with 1/3 pixel offsets. It still would only need to read the texture data once. I didn't implement it in the demo because there's no way to ask the browser what the display's subpixel order is. If you're viewing it on an ipad and switch from portrait to landscape your subpixel order changes.

Hinting was necessary back before good antialiasing existed but I don't think many renderers use it now. This technique renders each glyph differently according to its subpixel position - completely the opposite approach to hinting, which snaps features of the glyph to integer positions on the pixel grid.

wjd··on Show HN: GPU text rendering with vector textures
Consider that each "e" may be slightly differently aligned to the pixel grid though. So using an atlas is lower quality than drawing each "e" from scratch exactly as it aligns to the screen.