In deed... nevertheless I'd prefer something along the lines the require, where a string identifies the font... In my most recent UI version I allow multiple fonts in an indexed palette and keep the methods in that mapping to pick the font... after all, code competes with source code size... inherent to Espruino and is opposed to verbosity. Not an easy task to get opposites into a smooth marriage, even though opposites attract. (Some of the function/methods names in the new NRF/BLE world are just egregious long... and the devices' memory is less than the trend was after the Espruino Original STM32 chip... : )
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.
In deed... nevertheless I'd prefer something along the lines the require, where a string identifies the font... In my most recent UI version I allow multiple fonts in an indexed palette and keep the methods in that mapping to pick the font... after all, code competes with source code size... inherent to Espruino and is opposed to verbosity. Not an easy task to get opposites into a smooth marriage, even though opposites attract. (Some of the function/methods names in the new NRF/BLE world are just egregious long... and the devices' memory is less than the trend was after the Espruino Original STM32 chip... : )