Rockbox mail archive
Subject: Re: Re: Loadable fonts patch
From: Daniel Stenberg (daniel_at_haxx.se)
On Fri, 2 Aug 2002, Greg Haerr wrote:
> Also, I've attached convbdf, a perl script that should convert any BDF font
> to a C program file. I use this for builtin fonts in some other projects.
> It incorporates all the information that we will need in a small space,
> including a character lookup table, font width entries for proportional
> fonts, the bitmap data, and the font width, height and descent.
> I'd like to know whether this script runs on all BDF fonts you've got for
It barfed hard on the two fonts from Alex Gitelman's patch package and none
of them made good C code output.
However, the 6x8 font that Linus found (named suxus-iso-8859-1) seems to get
convered pretty nicely.
> If so, it shouldn't be that big a deal to convert the output into a binary
> format. The output can also easily be used for incorporated builtin fonts
> into rockbox without loadable font overhead, and provides a working
> internal structure for fonts.
Sounds like a good plan. The storage format would probably need to be rotated
though, since if I'm not mistaking your convbdf program now stores the font
data row by row instead of column by column that the Rockbox bitmap function
Daniel Stenberg -- Rocking the box => http://bjorn.haxx.se/rockbox/
Page was last modified "Jan 10 2012" The Rockbox Crew