Get the latest tech news

Texture-Less Text Rendering


How to draw text to a Vulkan renderpass without binding a single texture

Conveniently, the encoding of a font into bitmaps such as described above is very much the definition of the venerable PSF1 format, give or take a few header bytes. Note that lines are stored in reverse order because after we used ImHex to lift the bitmap bytes out of the font file, we just concatenated the chars into uint. You can find an implementation of the technique described above in the source code for le_print_debug_print_text, which is a new Island module that allows you to easily print debug messages to screen.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Text Rendering

Text Rendering