http://www.mattiasgustavsson.com/temp/libs/sysfont.hpp
It is a simple single-header implementation of a generic debug font renderer, which draws text to any 8, 16 or 32 bit bitmap target. You call it like this:
1 | sysfont::draw9x16( ptrToPixelBuffer, bitmapWidth, bufferHeight, xpos, ypos, "Your text here." ); |
It includes the actual font definition as an inline data array (as one bit per pixel), so there's no loading or assets needed (but instead you are limited to two fonts, one 8x8 and one 9x16 - the old DOS fonts).