Simple chinese characters on Bangle.js2 #7945
-
|
As per the subject, as anyone been successful in implementing a Chinese symbol font into the Bangle.js2? I did see the (Fonts (+150) and the Font Korean apps in the App Loader, but how can we actually use them or am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Yes, Chinese language fonts are implemented and work fine. You just need to install the "All Fonts" app: https://banglejs.com/apps/?id=fontall Realistically it didn't make sense to have a Chinese-only font file as it'd only be about 80% of the size of the 'All Fonts' one. Some info at https://github.com/espruino/BangleApps/blob/master/README.md#api-reference But basically:
eg:
|
Beta Was this translation helpful? Give feedback.


Yes, Chinese language fonts are implemented and work fine. You just need to install the "All Fonts" app: https://banglejs.com/apps/?id=fontall
Realistically it didn't make sense to have a Chinese-only font file as it'd only be about 80% of the size of the 'All Fonts' one.
Some info at https://github.com/espruino/BangleApps/blob/master/README.md#api-reference
But basically:
Graphics.prototype.setFontIntlexistsg.setFont("Intl")to set the font (org.getFontwill suggest the international font if it's available and your text contains international chars)g.drawStringwith a UTF8 string. Dealing with UTF8 in source code can…