canvas/data: cleanup some code
canvas/text: fix max_width in #fill and #stroke