Two questions regarding Bangle programming #8026
Replies: 1 comment 2 replies
|
Hi!
I'll update the readme - thanks for letting me know. The default Bangle.js fonts are basically ISO8859-1 (Latin) but for non-Latin fonts you just need to install a Font from https://banglejs.com/apps/?c=fonts - these are based on GNU Unitfont and are 16 pixel tall fonts (although you can pixel-double them to make them bigger). ("Fonts (all languages)" will do everything, but it's quite large - if you have a request for a specific subset let me know and I could probably build a font for it) A lot of apps, like Messages or built-in functions to handle menus and message boxes will then automatically use it if they detect non-latin characters (in UTF8 strings). You can either switch font in code using
You can, yes - see https://www.espruino.com/Modules#from-github-or-anywhere-on-the-internet- You need to be a bit careful though - many JS libraries aren't really built with microcontrollers in mind, and so tend to be pretty large and might use a ton of memory. What sort of thing did you want? I might be able to suggest something. Hope that helps! |
Uh oh!
There was an error while loading. Please reload this page.
I bought Bangle a month ago in order to have a programmable "half-dumb" watch, but I've ran into two issues:
How to use non-Latin fonts? In the fonts section of the Readme file, there is a link to an issue, which it seems that is was resolved.
Is there an official way to use external JS libraries? If I want to use some functions which aren't in the modules available, how to do it?
thanks in advance.
All reactions