Rockbox mail archive
Subject: Re: multifont?
On 11 February 2010 18:08, Nils <deathtoallhumans_at_gmail.com> wrote:
> On 2/11/10, Jonathan Gordon <jdgordy_at_gmail.com> wrote:
>> I now have a patch which works and is almost finished, but it uses
>> separate buffers for each font (coming from the skin buffer, not new
>> buffers) which I feel is a good enough solution until someone comes
>> along and does the work to make it all into one buffer.
> How are these buffers allocated? If they only use whatever free space
> there is in the skinbuffer we might get into trouble if they get too
> small and cause a spinup on almost any text drawing. Is there a limit
> to how many fonts can be used in a theme?
> Which also brings me to the biggest argument for the unified buffer,
> even if i understand you nor anyone else is eager to implement it.
> That if you use a lot of glyphs from one font and only a few from
> another you either waste a lot of memory or spin the disk a lot.
each skin font just takes a 10K block from the skin buffer, if there
isnt enough then the skin will fail to parse. And yes, a single buffer
would be better, but unless someone is going to do it then this is the
next best thing.
Received on 2010-02-12
Page was last modified "Jan 10 2012" The Rockbox Crew