Support and General Use > Theming and Appearance Customization
Uploading a theme fails for Clip+ - unable to recognize Font (resolved)
jouhou:
------------------
Resolution:
------------------
With a recent commit to svn (#27613), there is a new skin parser that increased the allocated RAM for skins on the Clip+.
The new skin parser is on physical devices as well as the "checkwps" validator program that we were having issues with on the Theme website. The daily Windows builds of the simulator have also been updated so you can try testing your theme again.
My theme now does not exceed the skin RAM limit for the Clip+; the simulator doesn't crash when going into FM Radio screen anymore; the checkwps validator allowed me to upload to the Theme site.
new: old:
----------------------------
Original posting below:
----------------------------
Here is(are) the error(s) given at the upload page:
--- Code: ---Your wps didn't pass checkwps. Here's the output:
Checking .rockbox/wps/YellowBarDynamic-Unicode.wps...
=====================
Loading '.rockbox/wps/YellowBarDynamic-Unicode.wps'
=====================
Unable to load font 4: '14-Rockbox-Mix.fnt'
WPS parsing failure
Checking .rockbox/wps/YellowBarDynamic-Unicode.wps...
=====================
Loading '.rockbox/wps/YellowBarDynamic-Unicode.wps'
=====================
Unable to load font 4: '14-Rockbox-Mix.fnt'
WPS parsing failure
Checking .rockbox/wps/YellowBarDynamic-Unicode.wps...
=====================
Loading '.rockbox/wps/YellowBarDynamic-Unicode.wps'
=====================
Unable to load font 4: '14-Rockbox-Mix.fnt'
WPS parsing failure
--- End code ---
14-Rockbox-Mix.fnt is in the official font download pack, so there should be no problem.
Here is the theme:
--- Code: ---%wd
%Fl(2,08-Rockfont.fnt)
# Progress bar, song elapsed & remaining time
%V(0,0,-,8,2)
%al%pc%ac%pb(32,0,66,6,pb.bmp)%ar%pr
%x(a,pbbackground.bmp,32,0)
# time of day, song length, countdown to sleep mode, playmode, shuffle & repeat modes, current playlist size, current song index into playlist, playlist's name if it exists
%V(0,8,-,-,2)
%t(6)%al%pt%ac%?mp<Stop|Play|Pause|FF|RR|Rec|Rec Pause|FM|FM Pause> %?ps<%(S%?mm<%)|.R%)|.R1%)|.R-S%)|.R-AB%)>|%?mm<|%(R%)|%(R1%)|%(R-S%)|%(R-AB%)>>%ar%?bs< zZz %bs|%?cf<%ck:%cM|%cl:%cM%cp>>;%t(3)%al%pt%ac%?mp<Stop|%pp/%pe|Pause|FF|RR|Rec|Rec Pause|FM|FM Pause>%ar%?bs<zZz %bs|%?cf<%ck:%cM|%cl:%cM%cp>>;%t(4)%?pn<%ac%s%pn %pp/%pe |%al%pt%ac%?mp<Stop|%pp/%pe|Pause|FF|RR|Rec|Rec Pause|FM|FM Pause>%ar%?bs<zZz %bs|%?cf<%ck:%cM|%cl:%cM%cp>>>
# title/filename
%Fl(3,16-GNU-Unifont.fnt)
%V(0,16,-,-,3)
%s%ac%?it<%it|%fn>
# artist/album artist/folder-name [album]
%Fl(4,14-Rockbox-Mix.fnt)
%V(0,32,-,-,4)
%s%ac%?ia<%ia|%?iA<%iA|%d(1)>> %?id< [ %id ]|>
# Codec, year, user-given rating, times played
%V(0,47,-,-,2)
%t(3)%al%fc%?fv<.VBR|.CBR>%ac%?iy<%( %iy %)|>%ar%?rr<Plays: %rp|Rated: 1|Rated: 2|Rated: 3|Rated: 4|Rated: 5|Rated: 6|Rated: 7|Rated: 8|Rated: 9|Rated: 10>;%t(3)%al%fc%?fv<.VBR|.CBR>%ac%?iy<%( %iy %)|>%arPlays: %rp
# bitrate, samplerate, volume level, key-press hold indicator, database automated rating, battery info
%V(0,56,-,-,2)
%t(3)%al%fb.kbps%ac%?mh<%( HOLD %)|%pvdB>%arARate: %ra;%t(3)%al%fkkHz%ac%?mh<%( HOLD %)|%pvdB>%arARate: %ra;%t(3)%al%fb.kbps%ac%?bp<+|B.>%bl%?bp<B|%%>%arARate: %ra;%t(3)%al%fkkHz%ac%?bp<+|B.>%bl%?bp<B|%%>%arARate: %ra
--- End code ---
jouhou:
It's been a few weeks since I originally posted this. The problem still exists.
Anyone else getting rejected by the validator when uploading themes that use 14-RockBox-Mix.fnt?
Anyone have workarounds?
The theme works 100% on my device, but the theme website is rejecting it for a false reason.
sockbox:
what type of player? is it a sansa clip by any chance?
Assuming it's a Sansa Clip, I couldnt get your theme to work
because it uses too much skin RAM. The Clip is limited to
only 13K of skin RAM. If you go over that amount, the sim
will start erroring w/ "Unable to load font...". I was
running into this same problem. You have to cut back on
fonts and images so you dont go over 13K. Look at using
cheaper fonts that use less memory or using less fonts.
jouhou:
--- Quote from: sockbox on July 15, 2010, 06:11:08 PM ---what type of player? is it a sansa clip by any chance?
Assuming it's a Sansa Clip, I couldnt get your theme to work
because it uses too much skin RAM. The Clip is limited to
only 13K of skin RAM. If you go over that amount, the sim
will start erroring w/ "Unable to load font...". I was
running into this same problem. You have to cut back on
fonts and images so you dont go over 13K. Look at using
cheaper fonts that use less memory or using less fonts
--- End quote ---
The simulator says this theme is using 12.2KB out of the max 13KB. It's under the limit.
Additionally, the theme loads and works fine in the simulator; it loads and works fine on my physical Clip+.
sockbox:
im running into the same problem w/ my theme. im just waiting for someone to fix the site.
http://forums.rockbox.org/index.php?topic=25266.0
Navigation
[0] Message Index
[#] Next page
Go to full version