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:
It uses half as much flash memory
You can choose the line width you want
It's faster to render when drawing single pixel width fonts
It's slower for wider line widths, and there is some overdraw (which is more of an issue on displays with low bandwidth like the colour LCDs)
There are other font styles available as well (google 'Hershey fonts')
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
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:
1 Attachment