g.setFontPBF not working? #7745
-
Is there something special to make PBF fonts work on Bangle.js 2 (firmware 2v25)? I tried uploading the renaissance ones (from here https://github.com/Chriz76/renaissance/tree/master/fonts) using the espruino library with: npx espruino -d Bangle.js --storage renaissance_18.pbf:renaissance_18.pbf and using them with: g.setFontPBF(require("Storage").read("renaissance_18.pbf")) but nothing shows on my Bangle. No error and no text displayed 🤔 Did I miss something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
This should work - in fact on latest builds we're using PBF fonts by default. Do you think you can try using the IDE? First verify the the font is actually there according to the Storage menu in the IDE, then see whether But if you install a cutting edge firmware build then several PBF fonts will already be built in... https://github.com/espruino/Espruino/tree/master/libs/graphics/font There's a temporary issue (Python/Pip/Nordic have changed something and have broken the automatic build for Nordic devices) but you can get the last working curring edge firmware from https://www.espruino.com/binaries/travis/9d1d889905d3c05d997cb9df67d7c71712df4e01/ |
Beta Was this translation helpful? Give feedback.
Ok, great. I've just updated the command-line tools to versiion 0.1.60 - maybe that'll help?
I just looked and the tools were loading the file as if it was a UTF8 file, but it was just binary. I think that's likely why the file size changed and the file ended up corrupt? Likely Bangle.js just silently bailed when it found the font wasn't right