Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Multifont, glyph/font cache

Multifont, glyph/font cache

From: bk <mutualaid_at_gmail.com>
Date: 2006-02-12

Hey all,

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?

bk
Received on Sun Feb 12 20:30:27 2006


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa