This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#12268 - multiple WPS fonts not loading since r30478
Attached to Project:
Rockbox
Opened by Andree Buschmann (Buschel) - Friday, 09 September 2011, 19:36 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Saturday, 24 September 2011, 16:01 GMT+2
Opened by Andree Buschmann (Buschel) - Friday, 09 September 2011, 19:36 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Saturday, 24 September 2011, 16:01 GMT+2
|
DetailsSince r30478 my own WPS is not loading anymore, cabbiev2 works fine. This is with a simulator for iPod nano 2G. The output of the simulator says: <Unable to load font 3: '13-arialbd.fnt'>
The attached patch fixes the issue for me. It enlarges SKIN_FONT_SIZE. |
This task depends upon
Closed by Jonathan Gordon (jdgordon)
Saturday, 24 September 2011, 16:01 GMT+2
Reason for closing: Fixed
Saturday, 24 September 2011, 16:01 GMT+2
Reason for closing: Fixed
FS#12273, the official "use buflib for fonts" patch; I would *NOT* recommend its use. As Jonathan himself posted earlier, we need to wait on the official patch where possible. If you have any improvements to the official patch, post it in that FS.As I posted just above you, I have since resolved my immediate problem without this patch by cutting back the glyphs (and unnecessary fonts) loaded in my skin. Anyone who can't fix their skin problems that way (and can compile) should apply Buschel's patch as a stopgap measure; everyone else should wait for
FS#12273.Buschel's patch simply enlarges an existing static buffer to accommodate the fonts; that "fixes" both his problem and mine without buflib (and in a stable manner), but at the cost of a larger total memory footprint for ALL users on ALL targets. That's why it's only a stopgap measure till the buflib fonts patch is ready. (I was arguing to go ahead and commit it, but that was deep-sixed in IRC before Jonathan even replied here.)
And what's that last comment about? To me that looks like a complete misunderstanding of what I did. The skin I was working with already had glyphs parameters; I got it to work patch-free by using SMALLER glyphs parameters, NOT by removing them altogether. For example, my biggest problem was a 35-point font for the FM frequency display that broke the skin with only 50 glyphs; I reduced it and some others to 20 (I only needed 14 but left some slack), and commented out some fonts that weren't being used at all. (IIRC, not using a glyphs parameter reserves 256 glyphs per font, which would have made things even worse.)
FS#12273is submitted. I am just keeping this open to avoid new bug reports in this area.