Rockbox mail archiveSubject: Re: Multifont, glyph/font cache
Re: Multifont, glyph/font cache
From: Paul Louden <paulthenerd_at_gmail.com>
Date: Sun, 12 Feb 2006 21:42:39 -0600
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
On 2/12/06, bk <mutualaid_at_gmail.com> 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?
Received on 2006-02-13