dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Multifont, glyph/font cache

Multifont, glyph/font cache

From: bk <>
Date: Sun, 12 Feb 2006 14:31:38 -0500

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?

Received on 2006-02-12

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy