-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better Bangle.js fonts #3109
Comments
ExamplesYes, I like the sound of this, currently I have Plan/pointsI think
I'd also like to add, for existing apps that would use this API / an initial implementation, I think it would be nice if we could let the user configure a single font for widgets, as mentioned at the start of my post Initial approachUser config
Test appsPerhaps we use And yes, +1 for initial implementation in JS, then performance checks |
Thanks!
I'm not sure I understand about enable/disable? Surely you just disable by uninstalling the font app?
Maybe While we can definitely add some settings to the font library (eg minimum font size, lock widget font, etc) I'm expecting that as long as we give enough info to I'm thinking at first maybe we have one lightweight font app that mirrors the existing behaviour (with built in fonts) which is the default that gets auto-installed, and then a second app using the Pebble fonts mentioned above. And when we're happy with the Pebble font one I think we just swap over. |
Good point - yes the enable/disable is unnecessary
Excellent idea, yes I think that'll work nicely for the font settings app being able to present the user with these use-types.
I'm interested in what font apps will do, are they effectively the setup for the builtin code that will sit behind |
Right now I'm thinking they'll provide a |
The Renaissance font looks good. To what extent will a raster font be speedier to draw than a vector font, especially at high resolutions? |
You'd have to do some testing but as a guess I'd say any font is faster as a raster unless it's over 40px high. Also for smaller fonts the final rendering is much better. Basically any normal font that's not filling the screen is better as raster |
Some work towards this now in 591c1f8 |
It appears to work! https://forum.espruino.com/conversations/394649/?offset=25#comment17323914 Just checked and you can even send messages from (the latest) Gadgetbridge too |
The ț character (U+021B) still doesn't appear in notifications on iOS, will test later today. I am using the extended fonts |
So does I see it in 'all fonts' at least, and in extended fonts we do up to char code 1103 so 0x21B should be in there |
Great stuff! I'm quite keen on having consistent fonts across a few widgets I have, I'm quite short on time over the next few weeks but looking forward to incorporating this |
Great! I should add that while there are now these font libraries available, the So ideally, before we start using the font all over the place we should probably implement Also thanks for your time recently @bobrippling - I know you've been busy :) |
There have been discussions about this in the past (I'm afraid I can't find any good links at the moment - they're probably on the forum). But vaguely related issues are #1145 and #1311
Problem
Where we are
So what's the issue?
It'd be nice if we had a global way of changing fonts (eg by installing an app/library via the App Loader) - to either change the look and feel, size of fonts, or to add native support for more character sets.
While we could have a library/function that handled simple font selection, eg
require("font").getFont("big"/"medium"/"small")
I don't think that's really useful enough.I think we need something that'll choose a font based on some text and how much space there is. For example:
Any thoughts on this? I think the main things it needs to be able to handle are:
...
) text as well as the font just to save on computing things twiceI guess it might be good to think about existing apps that would benefit from this (
messagegui
,launcher
,run
,E.showMenu
,E.showPrompt
, etc) and what kind of features they would need?Also, I guess this may need to be something that runs quite fast - so do we actually want a built-in function that just looks at a list of available fonts? Or maybe we get it working in JS first, then if it's slow we look at moving it inside the firmware.
The text was updated successfully, but these errors were encountered: