-
• #2
Take a short look to this http://www.espruino.com/modules/PCD8544.js and you will see, a graphics object is returned.
Goto references for graphical object http://www.espruino.com/Reference#Graphics there is a description for changing fontsize http://www.espruino.com/Reference#l_Graphics_setFontVector
Hope this helps
Juergen -
• #3
Juergen,
thank you a lot!T.
-
• #4
Hi There,
so I tried it to my snippet - https://github.com/korczis/iCave/blob/master/snippets/lcdTemp.js but it not works.I did tried to set the font size on the following lines:
https://github.com/korczis/iCave/blob/master/snippets/lcdTemp.js#L19
https://github.com/korczis/iCave/blob/master/snippets/lcdTemp.js#L31Any idea how to troubleshoot this, please?
Thanks in advance,
T. -
• #5
Have you since updated your code? Those lines don't contain any font size commands.
All you have to do it type:
g.setFontVector(20)
to get a variable size font, org.setFontBitmap()
to get the small font.
Hi There,
I am trying to figure out how to change font size when drawing on nokia 5110 display but with no luck. Is there any documention for modules API? Where? Can you give me few pointers, please?
http://xkcd.com/138/
T.