Rockbox mail archiveSubject: Re: [PATCH] compiled-in and loadable fonts
Re: [PATCH] compiled-in and loadable fonts
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 12 Sep 2002 16:39:31 +0200 (MET DST)
On Thu, 12 Sep 2002, Greg Haerr wrote:
> : I removed the dependency of this before I committed. This is now built-in
> : default. The propfonts/loadable fonts defines are now history.
> OK. Which bdf are you using for the standard compiled-in and/or
> loadable font? I couldn't find your standard 6x8 font bdf source.
The built-in fonts never were made as .bdf fonts. If we want them, we should
convert them over to BDF ourselves. The monospaced ones came from Gary a long
time ago, and dwihno made the proportional one.
> I'll look at a new way of generating the .c file from bdf. If you include
> the compiled-in .c files, and a binary .fnt, it'll allow windows build
> users to at least run with full functionality.
Your font package is also available for download from the mail archive:
> : Right, the helv08.bdf font I've had testing with creates a HUGE .fnt file
> : that doesn't load properly. And thus I haven't been able to test your
> : code for proportional fonts, just because I know of no other prop .bdf.
> Likely the font won't load because the MAX_FONT_SIZE define in
> firmware/font.h is too small.
Yes, it ended up at 58Kb! ;-)
> I'll add the 0x7e max char option to bdf2c and that will generate much
> smaller fonts.
Perhaps we should have the limit configurable, as for plain iso8859-1 I'd
like 0xff letters. (Us swedes and others have some of those 8-bit letters in
> The earlier X11R5 distributions had smaller .bdf files for the helv*.bdf
> fonts. The latest ones seem to include full unicode, and the fonts are
> super-large. You should goto x.org and find their font distributions,
> (xorg-2.tar.gz) and pull it down... It's got loads of bdf font sources.
It might be one of those I have then! ;-)
> : You'll notice that I re-indented your code to Rockbox standard and a few
> : other minor things.
> Thanks. I've read the contribution standard, but, try as I might, I can't
> get vim to indent to 4 spaces when I hit the tab key.... Do you have an
> indent script I can use?
From another project of mine, I have footers like this in all source files,
which I believe works for vim too:
* local variables:
* eval: (load-file "emacs-mode.el")
* vim600: fdm=marker
* vim: et sw=2 ts=2 sts=2 tw=78
That project uses 2 steps for each level, but if you replace them with 4 I
guess you should be close to "Rockbox standard".
> Let me know when I should pull down the CVS source, I'll take a look at it
> and check it works.
-- Daniel "Bagder" Stenberg -- http://rockbox.haxx.se/Received on 2002-09-12