g.setFontVector(20);
g.drawString("Temp:"+t + "\nBattery:" + b + "%\n" + c + "\nUptime: " + u + " hr",0,60);
the "\n" creates a newline, works fine, nice feature.
But there is no spacing between the lines so the result is not very readable. In all cases the characters of the lines "touch" and in some cases characters of lines even "overlap" ( see picture in annex ).
Searched the documentation for a line-space setting, but did not find it.
Is there a line-space setting, and if not, is it a suggestion to add one?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi,
When I use code like this
the "\n" creates a newline, works fine, nice feature.
But there is no spacing between the lines so the result is not very readable. In all cases the characters of the lines "touch" and in some cases characters of lines even "overlap" ( see picture in annex ).
Searched the documentation for a line-space setting, but did not find it.
Is there a line-space setting, and if not, is it a suggestion to add one?
1 Attachment