pebble-dev / RebbleOS

open source operating system for low-power smartwatches
Other
355 stars 38 forks source link

Files, files, everywhere: resources are files, and so are fonts! #104

Closed jwise closed 4 years ago

jwise commented 4 years ago

Rips out RAMFS, since that's ancient. Then, makes the primitive for resource load be "create a file object", rather than having fully_load be the primitive (and then implement fully_load on top of "create a file object"). That paves the way for the big kahuna here: changing the font loader and parser to operate on struct files, not on fully-loaded n_GFonts! Finally, once we're working on files, we can cache glyphs at a time, rather than whole fonts. So as a side effect, the overlay is now capable of rendering whole notifications without running out of RAM. Phew!!