|
|
Rockbox mail archiveSubject: Re: Thoughts on Multiple Fonts in RockboxRe: Thoughts on Multiple Fonts in Rockbox
From: Daniel Stenberg <daniel_at_rockbox.org>
Date: 2005-08-24
On Tue, 23 Aug 2005, Greg Haerr wrote:
> I thought I'd comment on Daniel's thoughts about adding multiple fonts to
Thanks, I value your input a lot!
> The font cache should house numbered fonts, not named fonts.
Right.
> There needs to be some discussion regarding how many lower level fonts
Actually, I had a slightly more complicated but flexible approach in mind:
We use a fixed size static memory area for loaded fonts. That's the cache. We
N can differ depending on the actual target model, just depending on how much
If an application selects to display a font that isn't in the cache already,
Thus, we can support displaying of numerous fonts, while we only support N
> Perhaps the config option that specifies the font name and its application
It wouldn't be possible due to the lack of dynamic memory functions, since you
> I think the above FONT_xxx should just be an enum, with values from 0.
I agree.
> Rather than loading fonts on the fly, which has memory allocation issues
Forcing users to reboot when they switch font seems harsh to me.
> The application never knows the optional or default sizes, any on-screen
Already today the applications don't know the size until they figure it out
> In this way, the application specifies a "desired" font, rather than a
I would imagine that we could have the font changing function have a parameter
-- Daniel Stenberg -- http://www.rockbox.org/ -- http://daniel.haxx.se/ _______________________________________________ http://cool.haxx.se/mailman/listinfo/rockboxReceived on Wed Aug 24 09:16:13 2005 Page was last modified "Mar 9 2008" The Rockbox Crew |