Allow tick label wrapping on canvas

For those interested here's the wrapping code that works for me on #1270