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

Rockbox mail archive

Subject: Re: Multifont, glyph/font cache

Re: Multifont, glyph/font cache

From: Paul Louden <>
Date: 2006-02-13

I think most people who want "multiple fonts" generally mean the ability to
use more than one font on a WPS, rather than different fonts for WPS and
Menus. I know that's not actually helpful to your question, but it seemed
somewhat relevant.

On 2/12/06, bk <> wrote:
> 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 Mon Feb 13 04:43:14 2006

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