To be perfectly honest, the only thing I did was to wrap the text block with scale box:
I only used the window resizing for debugging/demonstration purposes. I can post that, too if anyone is interested.