That's great! Please feel free to send in whatever changes you have and I'll pull them into the main app.
For the image, suppose you put ż into the image converter (best to tick transparency + invert + crop) and got var img = E.toArrayBuffer(atob("BwsBEAAD4MEEECCB8A=="))
"ż".charCodeAt() gives you 380
So then you'd put in:
var unicodeRemap = {
380:"\0"+atob("BwsBEAAD4MEEECCB8A==")
};
And that should hopefully do it for you :)
I should add that right now the character will be rendered in the image's size regardless of the size of the font. I've been considering changing Espruino so that if you provide an image it'll scale it up until it matches the current font size though - so I think that would be a big help
Thanks, I think I will stick with maping as using images makes it look weird with different font sizes. But when this update with scaling comes I will happily get back to it and help with the code.
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.
That's great! Please feel free to send in whatever changes you have and I'll pull them into the main app.
For the image, suppose you put
ż
into the image converter (best to tick transparency + invert + crop) and gotvar img = E.toArrayBuffer(atob("BwsBEAAD4MEEECCB8A=="))
"ż".charCodeAt()
gives you380
So then you'd put in:
And that should hopefully do it for you :)
I should add that right now the character will be rendered in the image's size regardless of the size of the font. I've been considering changing Espruino so that if you provide an image it'll scale it up until it matches the current font size though - so I think that would be a big help