Updating Blf on screen text in a non modal setup?


I am working on an add-on that prints some text/info on the screen using blf. I can make this work nicely when I add the handler in a modal operator’s invoke and remove it when the user presses esc, but I can’t seem to find a way to do it in a non modal way. The text are always printed on top of eachother naturally, since I cant find a way to remove and update the draw handler.