Distance field fonts

Monkey Forums/Monkey Programming/Distance field fonts

Soap(Posted 2015) [#1]
https://github.com/libgdx/libgdx/wiki/Distance-field-fonts

https://github.com/paulhoux/Cinder-Samples/tree/master/TextRendering

https://www.youtube.com/watch?v=CGZRHJvJYIg

Has anyone started support for something like this for mojo2 already?


Dima(Posted 2015) [#2]
It should be trivial to implement with shaders in real time. A while back I wrote a demo in Monkey using write pixels to pre-render distance field shapes into images because without shaders it's not doable in real time.

Can't find my demo now... Sad, because I also had a simple BlitzMax app that calculated and saved the distance fields from high resolution monochrome images.

Good read below. Valve had a paper on this a few years back. http://www.valvesoftware.com/publications/2007/SIGGRAPH2007_AlphaTestedMagnification.pdf