The Pixl.js menu code is basically a wrapper around graphical_menu that adds the icons and button support, so you should be able to use the functionality from there like fontHeight: http://www.espruino.com/graphical_menu
However Pixl.menu tries to reset the font when it starts, so you have to use Pixl.menu, then set the font, then re-render - but otherwise it works:
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.
The Pixl.js menu code is basically a wrapper around
graphical_menu
that adds the icons and button support, so you should be able to use the functionality from there likefontHeight
: http://www.espruino.com/graphical_menuHowever
Pixl.menu
tries to reset the font when it starts, so you have to usePixl.menu
, then set the font, then re-render - but otherwise it works:If I added a
predraw
option forgraphical_menu
then it'd be tidier though - you could just set the font in that...edit: just added predraw, so versions of Pixl.js after 1v99 will have that in and:
should work