Fix #661, where category axes break if there is too little height to ren...

...der text.

Add unit test.
I would like another case where you have plenty of width, but not enough height. Like `writeText("hello world", 10000, 1, ...)`.