Texture-Based TTF rendering

View the full source.

Lux's texture-based text rendering infrastructure includes an adaptive antialiasing algorithm meant to produce better results at very low resolutions (or very deep zooms). The left side of the screen shows text rendering without it, and the right side of the screen shows text rendering using it. This is controlled by the compensate_blur option in the texture batch parameters. Typically you'll set it to either true or false, but here we're tying it to whether the fragment is to the left or right of the screen.

Acknowledgments

The font file in this demo is Open Sans, from Google's Web Fonts project. It's processed with a tool we're going to release real soon now.

Back to the index.