Thank you to anyone who has already donated - your generous donations helped make three months of treatment possible.
My brother Nate continues to fight stage IV Hodgkin's lymphoma. He's just 31, with a wife and baby girl. They have no active income (since he's been unable to return to work), no insurance, and cannot afford the treatment he needs. Nate and his family need your help. Please consider a donation, every dollar helps. Thanks.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 |
diff --git a/apps/settings_list.c b/apps/settings_list.c index d6f5f94..6226c1f 100644 static const char graphic_numeric[] = "graphic,numeric"; #define DEFAULT_FONTNAME "" #endif +#ifdef HAVE_REMOTE_LCD +#if LCD_REMOTE_HEIGHT <= 64 + #define DEFAULT_REMOTE_FONTNAME "08-Rockfont" +#else + #define DEFAULT_REMOTE_FONTNAME "-" +#endif /* HAVE_REMOTE_LCD */ + #ifdef HAVE_LCD_COLOR #define DEFAULT_ICONSET "tango_small" #define DEFAULT_VIEWERS_ICONSET "tango_small_viewers" const struct settings_list settings[] = { #endif #ifdef HAVE_REMOTE_LCD TEXT_SETTING(F_THEMESETTING, remote_font_file, "remote font", - "-", FONT_DIR "/", ".fnt"), + DEFAULT_REMOTE_FONTNAME, FONT_DIR "/", ".fnt"), #endif TEXT_SETTING(F_THEMESETTING,wps_file, "wps", DEFAULT_WPSNAME, WPS_DIR "/", ".wps"), diff --git a/wps/WPSLIST b/wps/WPSLIST index 856022c..3707c4a 100644 Font.132x80x16: 11-Sazanami-Mincho.fnt Font.128x64x1: 08-Rockfont.fnt Font.112x64x1: 08-Rockfont.fnt +# Remote font for iriver +Remote Font.128x64x1: 08-Rockfont.fnt + #misc settings that should be ignored on grayscale targets foreground color: CCCCCC background color: 000000 remote ui viewport: <rwps> Name: cabbiev2.rwps Author: Johannes Voggenthaler, Apoo Maha, Marc Guay, Alex Vanderpol, Jerry Lange, Keith Perri, Mark Fawcus, and Marianne Arnold with support from Rockbox developers and forums. Based on Cabbie by Yohann Misquitta. -Font: 12-Adobe-Helvetica.fnt Statusbar: top </rwps> diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl index 81a90f3..57dc3de 100755 my $rsbs_w_size; my $width; my $height; my $font; +my $remotefont; my $fgcolor; my $bgcolor; my $statusbar; sub copybackdrop sub copythemefont { #copy the font specified by the theme + my $o = $_[0]; - my $o=$font; $o =~ s/\.fnt/\.bdf/; mkdir "$rbdir/fonts"; - my $cmd ="$ROOT/tools/convbdf -f -o \"$rbdir/fonts/$font\" \"$ROOT/fonts/$o\" "; + my $cmd ="$ROOT/tools/convbdf -f -o \"$rbdir/fonts/$_[0]\" \"$ROOT/fonts/$o\" "; `$cmd`; } MOO push @out, "font: /$rbdir/fonts/$font\n"; } } + if(defined($remotefont) && $has_remote) { + if ($remotefont eq '') { + push @out, "remote font: -\n"; + } else { + push @out, "remote font: /$rbdir/fonts/$remotefont\n"; + } + } if($fgcolor && $main_depth > 2) { push @out, "foreground color: $fgcolor\n"; } while(<WPS>) { undef $width; undef $height; undef $font; + undef $remotefont; undef $fgcolor; undef $bgcolor; undef $statusbar; while(<WPS>) { copythemeviewericon(); } if ($font) { - copythemefont(); + copythemefont($font); + } + if ($remotefont) { + copythemefont($remotefont); } if(!$isrwps) { # We only make .cfg files for <wps> sections: while(<WPS>) { elsif($l =~ /^Font\.${main_width}x${main_height}x$main_depth: *(.*)/i) { $font = $1; } + elsif($l =~ /^Remote Font\.${remote_width}x${remote_height}x$remote_depth: *(.*)/i) { + $remotefont = $1; + } + elsif($l =~ /^Remote Font: *(.*)/i) { + $remotefont = $1; + } elsif($l =~ /^Foreground Color: *(.*)/i) { $fgcolor = $1; } |