It'd be interesting to see what gets sent by Gadgetbridge (maybe with the Gadgetbridge Debug app) but I have a feeling that rather than sending UTF8, it might convert everything to ISO Latin, in which case even if you changed the font (which you can do) Gadgetbridge will still need modification.
A few months ago I added something to Espruino that allows g.drawString (so any text drawn) to include images. You just include character code 0 followed by the image as a string (http://www.espruino.com/Graphics#strings).
And there is even some code that's already been tried at https://github.com/espruino/BangleApps/issues/754 which renders everything to an image, so actually it shouldn't be too hard to modify to get it to render just the relevant characters/words instead.
It's been on my list of jobs for a while though, so if you were willing to take a look that'd be amazing
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.
Hi!
It'd be interesting to see what gets sent by Gadgetbridge (maybe with the Gadgetbridge Debug app) but I have a feeling that rather than sending UTF8, it might convert everything to ISO Latin, in which case even if you changed the font (which you can do) Gadgetbridge will still need modification.
A few months ago I added something to Espruino that allows
g.drawString
(so any text drawn) to include images. You just include character code 0 followed by the image as a string (http://www.espruino.com/Graphics#strings).So... what we could do is in Gadgetbridge we check for any characters that aren't in the ISO Latin char map, then we render those (ideally as a whole word) to a bitmap and then include it in the string we send over. We actually already have code for the bitmap conversion as this was on my list of things to do: https://codeberg.org/gfwilliams/Gadgetbridge/src/commit/c597adf27fb4628ca523c40a99e78aa5a613b21e/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSDeviceSupport.java#L639
And there is even some code that's already been tried at https://github.com/espruino/BangleApps/issues/754 which renders everything to an image, so actually it shouldn't be too hard to modify to get it to render just the relevant characters/words instead.
It's been on my list of jobs for a while though, so if you were willing to take a look that'd be amazing