blf in a modal operator to draw help text on the 3D viewport. Here's a snippet:
FONT_ID = 0 bgl.glColor4f(1.0, 1.0, 1.0, 1.0) try: blf.position(FONT_ID, x, y, 0) blf.draw(FONT_ID, line) finally: bgl.glColor4f(0.0, 0.0, 0.0, 1.0)
This works well, but when the user moves the mouse, the text flickers: when the mouse is moving it's a bit bigger, and when it stops it goes smaller. When it's bigger it also appears a little blurry. I think the texture that the text is being painted onto is being scaled incorrectly when the mouse moves. I've checked the parameters that I'm passing to
blf.position, and they're not changing.
Is there any way I can stop this from happening?