The fonts (and most other modules) aren't built-in to the watch: when you do require("Font8x12"), the uploader is smart enough to figure out you want to use Font8x12, and includes it in-line with the uploaded code.
But the uploader isn't smart enough to figure out which module to include for require(<variable>).
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 fonts (and most other modules) aren't built-in to the watch: when you do
require("Font8x12")
, the uploader is smart enough to figure out you want to useFont8x12
, and includes it in-line with the uploaded code.But the uploader isn't smart enough to figure out which module to include for
require(<variable>)
.