1
0
Fork 0
forked from len0rd/rockbox
foxbox/apps
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
..
player Wrong order of icons 2002-09-03 07:51:15 +00:00
recorder moved the 12x16 font from the chartables to the bounce code, as that is 2002-09-13 06:32:25 +00:00
applimits.h Now we can have up to 400 files in a directory 2002-08-15 12:28:52 +00:00
credits.c Greg Haerr's new loadable font. No more #ifdef font-style, removed old 2002-09-12 13:33:59 +00:00
credits.h credits and version merged 2002-05-31 08:12:29 +00:00
debug_menu.c Removed the LEFT key from dbg_ports() to be able to debug the analog key levels even for the LEFT key 2002-08-26 10:06:33 +00:00
debug_menu.h Remade the menu system slightly. All functions invoked from menus now use 2002-08-23 12:32:52 +00:00
demo_menu.c Renamed menu item 'Screensavers' to more descriptive 'Demos'. Added snow, removed blank and boxes. 2002-09-06 22:28:28 +00:00
demo_menu.h Renamed menu item 'Screensavers' to more descriptive 'Demos'. Added snow, removed blank and boxes. 2002-09-06 22:28:28 +00:00
FILES include the player dir too 2002-09-05 12:53:14 +00:00
games_menu.c classic snake game by Itai Shaked 2002-09-10 15:55:37 +00:00
games_menu.h Remade the menu system slightly. All functions invoked from menus now use 2002-08-23 12:32:52 +00:00
main.c Greg Haerr's new loadable font. No more #ifdef font-style, removed old 2002-09-12 13:33:59 +00:00
main_menu.c Greg Haerr's new loadable font. No more #ifdef font-style, removed old 2002-09-12 13:33:59 +00:00
main_menu.h Remade the menu system slightly. All functions invoked from menus now use 2002-08-23 12:32:52 +00:00
Makefile New player directory with icons 2002-09-03 07:39:55 +00:00
menu.c Daniel, 2002-09-16 03:18:49 +00:00
menu.h MENU_DISK_CHANGED is the new value for telling disk content might have 2002-08-23 12:41:25 +00:00
options.h Renamed menu item 'Screensavers' to more descriptive 'Demos'. Added snow, removed blank and boxes. 2002-09-06 22:28:28 +00:00
playlist.c adi is stupid improvements 2002-09-12 09:20:03 +00:00
playlist.h modified the playlist system slightly: 2002-08-28 09:22:44 +00:00
README lets point to the docs dir 2002-08-21 10:25:16 +00:00
settings.c added Lee Marlow's get_option() wrap patch 2002-09-14 06:03:51 +00:00
settings.h Added function pointer argument to set_option(). This allows for instantaneous response from the AVC and Channels sound options 2002-09-10 05:31:12 +00:00
settings_menu.c Renamed "Browse Current" to "Follow Playlist" 2002-09-12 06:45:47 +00:00
settings_menu.h Renamed 'load default config' to 'reset settings'. Made it work on recorder. 2002-09-07 12:28:46 +00:00
showtext.c use extern strcat() now 2002-06-19 08:29:28 +00:00
sound_menu.c Oooops! Players need the set_chanconf() function too 2002-09-10 06:24:46 +00:00
sound_menu.h Remade the menu system slightly. All functions invoked from menus now use 2002-08-23 12:32:52 +00:00
status.c use lcd_update_rect() even on simulators (*crosses fingers*) 2002-09-10 08:43:01 +00:00
status.h F3 now toggles global_settings.statusbar 2002-08-15 14:12:32 +00:00
tree.c Greg Haerr's new loadable font. No more #ifdef font-style, removed old 2002-09-12 13:33:59 +00:00
tree.h Hardeep's browse current file patch. When hitting stop while playing, you will be on the current song, also this is configurable 2002-09-09 14:25:39 +00:00
version.h Added build timestamp in version string 2002-07-15 13:34:36 +00:00
win32.mak now also build without parameters 2002-09-08 20:14:10 +00:00
wps-display.c Greg Haerr's new loadable font. No more #ifdef font-style, removed old 2002-09-12 13:33:59 +00:00
wps-display.h Renamed "wps.config" to "default.wps". 2002-09-02 12:46:32 +00:00
wps.c Exit on_screen on combination key release. 2002-09-13 15:54:23 +00:00
wps.h Added quick-set screens to F2 (play modes) and F3 (screen settings) in dir browser and wps. Fixed minor propfont issues in lcd.c. Exported icons outside of icons.c 2002-09-03 15:58:47 +00:00

For general information see: docs/README
For API information see: docs/API