I developed a clock face that uses the VGA8 font.
At the beginning I call: require("FontVGA8").add(Graphics);.
I tried implementing fast loading so in the remove handler I call: delete Graphics.prototype.setFontVGA8;
The problem is that I also have a widget that uses the VGA8 font. Now, even though the widget calls require("FontVGA8").add(Graphics); in the beginning of its own code as well, I get the error Unknown font VGA8.
Was I supposed to call delete Graphics.prototype.setFontVGA8;?
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.
Hello,
I developed a clock face that uses the
VGA8
font.At the beginning I call:
require("FontVGA8").add(Graphics);
.I tried implementing fast loading so in the
remove
handler I call:delete Graphics.prototype.setFontVGA8;
The problem is that I also have a widget that uses the
VGA8
font. Now, even though the widget callsrequire("FontVGA8").add(Graphics);
in the beginning of its own code as well, I get the errorUnknown font VGA8.
Was I supposed to call
delete Graphics.prototype.setFontVGA8;
?