Rockbox mail archiveSubject: Multifont, glyph/font cache
Multifont, glyph/font cache
From: bk <mutualaid_at_gmail.com>
Date: Sun, 12 Feb 2006 14:31:38 -0500
I'm working on implementing simple multifont support. Currently the
design is such that fonts are specified by theme, with 3 main fonts
(browser, WPS, menu) and two target-dependent fonts (tuner, recording).
Sysfont is left as-is.
I'm trying to avoid invasive code changes, right now I'm merely
duplicating font structures (sysfonts is now a 4-6 member array, etc)
and expanding font functions to take a fontnum argument. My main problem
is the glyph/font cache code. I'm not sure I totally understand its
function: as far as I can tell, all fonts are loaded from disk at
startup, I don't see how the on-disk glyph cache speeds anything up. The
LRU code in particular is pretty dense and undocumented.
Is it helpful to expand the glyph cache to support separate caches for
each font? How difficult would it be wrt the lcd functions to just rip
out the cache code altogether?
Received on 2006-02-12
Page was last modified "Sat May 23 08:12:40 2020" The Rockbox Crew