Hacker News new | ask | show | jobs
by scotty79 1991 days ago
There's super interesting super-fast very high quality font rendering technique on GPU using extremely simple fragment shader and low-res prerendered texture that contains 3-channel signed distance field.

https://youtu.be/6l_oSHWFbb0

That distance fields encoded in the texture are really freaky to capture sharp corners as median of three of them when texture gets interpolated:

https://github.com/copperspice/cs_paint/blob/master/demo/res...

1 comments

Apparently it's called MSDF fonts and you can read about how to use it practice here

https://css-tricks.com/techniques-for-rendering-text-with-we...