You are reading a single comment by @gerardwr and its replies.
Click here to read the full conversation.
-
@gerardwr - That looks like a good solution to me, although I would have personally made an entirely new function named drawLines or something instead of overriding g.drawString.
In analogy with http://forum.espruino.com/conversations/302392/ I coded a "drawString" override that introduces proper line spacing in Strings witch "\n" newlines in it. In this case I have chosen for 5 pixels of space between each line..
Rather new to Espruino so maybe not the best solution, but it works for me.
Hopefully Gordon will come up with a structural solution.
Example code:
And the resulting output:
1 Attachment