Yeah, man. Very clever, thanks for sharing. I've been increasingly relying on canvases for this sort of thing, mostly to overcome the ridiculous 24point font limitation(my iPad Mini2 is on my pedalboard, 'remote-controlled' by a Moto-X on my guitar...). The problem for me is that canvases can be be very heavy-handed relative to text objects. I'm often using text as dynamic value displays, i.e. a fader's value triggered by incoming MIDI/OSC from the device I'm controlling as kind of a poor man's ACK to make sure that the target device (Arduino, in my case) actually got the message.
setattribute(textobject, 'content', ''+MIDI_ARGS);
A LOT more canvas code, lol
But hey, beggars can't be choosers. I continue to learn a great deal by the ways programmers who are MUCH sharper than I am find ways to code around these unnecessary limitations