rockbox/firmware
Eric Linenberg 038df5cdc9 Daniel,
The following patch makes loadable fonts actually work (finally!).
It took me quite a while, but I finally figured out why the sim
worked and the target didn't: the SH1 processor won't read
longwords from a shortword alignment... I had to rev the .fnt
file to version 1.1 (requires remaking *.fnt files) in order
to fix this.  Please apply the following patch completely.
It's diffed against the latest CVS.

I've also attached rockbox-fonts-1.1.tar.gz which includes
known working *.fnt files, including a courB08 system.fnt,
for demonstration.

Now the real work can begin...  Although the new
system.fnt will work fine, if you try going to a really
big font (try copying courB14.fnt to system.fnt), then
you will find that it comes up and works in tree mode,
but will crash the system when going into WPS
mode...  I'm sure this is because of the low-level
lcd_bitmap not clipping properly when given a too-large
bitmap, which the characters become.  I haven't yet
tried to debug the low-level driver.  Of course, it all
works on the sim...

So the apps developers will now have to make sure that
all apps screen sizes may vary according to the loaded font.
The font height can be gotten through the lcd_getfontsize API.

Files patched in fonts-6.patch

1. apps/menu.c - LCD_PROPFONTS error (2nd resubmission on this, please checkin)

2. firmware/font.c - fixes and reformatting.  Please check this in as is,
my vi editor requires more reformatting changes since I left tabs in the
file, these are removed now (2nd resubmission on this, please checkin)

3. firmware/fonts.h - doc change on .fnt file format, .fnt version
number incremented.

4. firmware/loadfont.c - fixes to load font properly, typedefs
removed.

5. firmware/system.c - lcd_setfont(FONT_SYSFIXED) before
issuing error, otherwise font may not exist.

6. tools/bdf2c - fixes for correct output when filename starts
with a number, as well as when no DEFAULT_CHAR in .bdf
file.  (2nd resubmission on this, please checkin)

7. tools/writerbf.c - fixes for bugfixed fontfile format.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2294 a1c6a512-1295-4272-9138-f99709370657
2002-09-16 03:18:49 +00:00
..
common undef MAX_PATH before defining it makes it play the simulator game better 2002-09-13 06:27:16 +00:00
drivers no longer include unicode.h, we've removed that file 2002-09-12 13:51:54 +00:00
fonts Forgot to add the new files 2002-08-11 09:22:40 +00:00
include New vastly improved random algorithm: Mersenne Twister 2002-07-17 23:07:45 +00:00
malloc realloc takes a void * as first argument 2002-05-27 07:25:30 +00:00
test Storing the latest fat32 test code 2002-08-08 20:32:09 +00:00
app.lds Fixes for binutils 2.13 2002-09-08 17:05:28 +00:00
backlight.c Missing break in the SYS_USB_CONNECTED case 2002-08-23 09:36:49 +00:00
backlight.h Moved settings.c/h to apps/ 2002-06-27 00:20:00 +00:00
bitswap.S Faster, 8-bit bitswap by Magnus Holmgren 2002-08-20 14:22:11 +00:00
config-player.h No DAC3550A in the recorder 2002-08-16 07:16:52 +00:00
config-playerold.h No DAC3550A in the recorder 2002-08-16 07:16:52 +00:00
config-recorder.h Added battery charger code for the recorder and battery voltage statistics keeping for all platforms. 2002-08-06 10:50:50 +00:00
config.h moved sounds settings to settings.h, config.h is only for including the 2002-06-19 14:58:35 +00:00
COPYING First version 2002-06-17 13:54:03 +00:00
crt0.S Added Randy Wood's ROLO 2002-09-03 09:44:08 +00:00
debug.c Settings are now saved in RTC RAM on Recorder (Heikki Hannikainen). 2002-07-15 11:02:12 +00:00
debug.h Greg Haerr's new loadable font. No more #ifdef font-style, removed old 2002-09-12 13:33:59 +00:00
FILES added those gnush makefiles 2002-09-02 07:15:29 +00:00
font.c Daniel, 2002-09-16 03:18:49 +00:00
font.h Daniel, 2002-09-16 03:18:49 +00:00
gdb.lds Fixes for binutils 2.13 2002-09-08 17:05:28 +00:00
id3.c Read tracknum from id3v1.1 tag (Kenneth Kiraly) 2002-09-09 22:31:11 +00:00
id3.h Added resume. Works in dirs and playlists, shuffled or not. Resumes mid-song, but press pause on players before you shutdown so they get a chance to store the position on disk. Recorders use RTC ram. Todo: Time display is wrong after mid-track resume and ffd/rew is not handled. 2002-08-16 14:41:47 +00:00
kernel.c sleep() and queue_wait() moved to internal RAM 2002-08-01 08:14:01 +00:00
kernel.h Added queue_broadcast() 2002-06-29 21:19:55 +00:00
loadfont.c Daniel, 2002-09-16 03:18:49 +00:00
Makefile Reverted back to monospace again. Let's not rock the boat until people can change it themselves (i.e. loadable fonts). 2002-08-28 11:54:41 +00:00
mpeg.c Added pitch setting screen for recorders. Hold ON in wps to see it. Pitch range is 50-200% 2002-09-13 13:14:06 +00:00
mpeg.h Pitch control for Recorder 2002-09-12 12:25:44 +00:00
panic.c Greg Haerr's new loadable font. No more #ifdef font-style, removed old 2002-09-12 13:33:59 +00:00
panic.h
player.lds Fixes for binutils 2.13 2002-09-08 17:05:28 +00:00
powermgmt.c Reset the power history with the latest value when starting charging 2002-08-21 20:06:41 +00:00
powermgmt.h Charge longer, deeper, better. Also restart charging already at 95%, since 2002-08-21 20:09:13 +00:00
README lets point to ../docs/README 2002-08-21 11:13:46 +00:00
rockbox-mode.el
rolo.c Changed screen output 2002-09-09 12:59:06 +00:00
rolo.h Added Randy Wood's ROLO 2002-09-03 09:44:08 +00:00
system.c Daniel, 2002-09-16 03:18:49 +00:00
system.h Changed frequency for Recorder 2002-06-07 10:29:14 +00:00
thread.c Moved switch_thread() and the thread context data to internal RAM 2002-08-01 08:14:56 +00:00
thread.h less stack means more mem for fun and games ;-) 2002-08-16 11:53:54 +00:00
usb.c Added NSauzede's patch to detect USB while in a Menu. It also adds the USB icon to the player while in USB mode. 2002-08-23 02:17:00 +00:00
usb.h include kernel.h to work stand-alone better 2002-08-21 17:45:22 +00:00
win32.mak now also build without parameters 2002-09-08 20:14:10 +00:00
X5x8.bdf Greg Haerr's new loadable font. No more #ifdef font-style, removed old 2002-09-12 13:33:59 +00:00
X5x8.c Greg Haerr's new loadable font. No more #ifdef font-style, removed old 2002-09-12 13:33:59 +00:00

See docs/README