I finally got a script working for creating text in game - But now, I’m having trouble with font size…
import bge
import blf
from bge import logic
def TextRender():
text = "Hi"
blf.position(0, 0, 0, 0)
blf.size(0, 12, 72)
blf.draw(0, text)
logic.getCurrentScene().post_draw = [TextRender]
If you run this in blender - you’ll see it’s hard to manipulate the blf.size() values to get something decent. Anyone know a way around this?