|
|
Rockbox mail archiveSubject: Re: Multifont: testing & feedbackRe: Multifont: testing & feedback
From: Fredrik Öhrn <ohrn_at_chl.chalmers.se>
Date: 2006-03-11
bk wrote:
To avoid loading the same font several times, I'd suggest the following:
Drop the lines:
static struct font browserfont;
And make an array instead:
static struct font available_fonts [MAX_FONTS];
When someone calls font_load, go through the available_fonts array, if the
If the font doesn't exist, pick an empty slot in the available_fonts array,
This is also a path toward using multiple fonts in a wps. Add tag that loads a
Regards,
--
"40 million, son. You have any idea how many patients
I had to ignore to get that high score? People died." --Dr. Kelso
Fredrik Öhrn Chalmers University of Technology
ohrn@chl.chalmers.se Sweden
Received on Sat Mar 11 19:14:38 2006
Page was last modified "Jan 10 2012" The Rockbox Crew |