New Resizable Font? #5939
Replies: 1 comment
-
Posted at 2018-06-01 by @yerpj Can the old font and new resizable font cohexist ?
I think that this could be a problem. When using UI such as displays, the refresh rate is often critical for the user experience Posted at 2018-06-02 by @MaBecker Wow this sound great to me and I am a big fan of your resizable vector font as this is one of Espruino's unique features. Like this very much about the new resizable font:
Well things always change. What about: you keep Posted at 2018-06-04 by @gfwilliams
Yes - however the drawing should work fine on anything with an internal buffer, and if I'm honest the displays with external buffers have always been too slow, so I doubt this will change matters :) Overfill could really be improved with a bit more work (supporting irregular polygon fills, and converting wide polylines into polygons). I guess there probably needs to be some benchmarking done.
Yes, absolutely - that'd be the plan. It's just if you were expecting some text to be a certain width |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-06-01 by @gfwilliams
The existing vector font in Espruino really isn't that great, and it led me to look at some other options on this thread.
It turns out rather than storing a filled font, you can store a 'stroke font' that's just made out of lines. It takes half amount of memory and looks pretty smooth.
Below is an example, drawing Espruino's existing vector font up the top, followed by the same stroke font at different line widths below. You can see it scales down nicely, as well as giving you options for how 'bold' it is.
How does everyone feel about this? It'd be replacing the existing vector font, so might mess up the formatting of existing projects.
Some notes:
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions