Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: JdGordon on February 10, 2010, 03:41:12 AM

Title: new multifont patch! who's game enough to test?
Post by: JdGordon on February 10, 2010, 03:41:12 AM
I've just uploaded my multifont patch which I'm hopeing is almost ready for commit... so who's game enough to test it out?

http://www.rockbox.org/tracker/task/10984#comment34486

post any bugs you find in the tracker, discussion can go here if any happens though

(http://imagebin.ca/img/60lPObu.bmp)
Title: Re: new multifont patch! who's game enough to test?
Post by: psycho_maniac on February 10, 2010, 05:05:02 AM
JdGordon. Ive noticed you've been doing a lot with WPS's and graphics like that. keep this up bro! loving all of this.
Title: Re: new multifont patch! who's game enough to test?
Post by: [Saint] on February 10, 2010, 05:08:46 AM
Hmmmmm,

This is probably a "Read the bloody code and find out" kind of situation, but how does one call a font in these cases?

I mean, I assume 0 is still "sysfont", and 1 is still "user-font" etc...
How are the other fonts defined?

I'm really sleepy, and may well kick myself when I read the reply in the morning, but at 11pm when I've been up for two days, my question still stands.
Good work btw Jd :D


[St.]
Title: Re: new multifont patch! who's game enough to test?
Post by: JdGordon on February 10, 2010, 12:29:24 PM
%Fl|2|12-Nimbus| <- loads 12-Nimbus to the number 2 slot, 2 must be between 2 and 5 (inclusive). that number is then used in %V lines for the font.
yes sysfont is still 0 and ui font is still 1
Title: Re: new multifont patch! who's game enough to test?
Post by: [Saint] on February 11, 2010, 03:30:48 AM
[St.] provides proof of concept.

(http://imgur.com/AOM6L.png)

5 user fonts onscreen with his "Symmetry" theme for iPod Nano
Title: Re: new multifont patch! who's game enough to test?
Post by: Biont on February 11, 2010, 10:50:16 AM
I can't wait for this to go on SVN.
Title: Re: new multifont patch! who's game enough to test?
Post by: iPodFoo on February 13, 2010, 11:23:43 AM
Me too! I have a theme thats perfect for this that I used a couple of years ago with a custom build. Unfortunately, I cant seem to test this patch because the vmware compiling keeps messing up (not the patchs fault).
Title: Re: new multifont patch! who's game enough to test?
Post by: JdGordon on February 14, 2010, 01:53:19 AM
this is now in svn... go nuts!
Title: Re: new multifont patch! who's game enough to test?
Post by: iPodFoo on February 14, 2010, 01:10:02 PM
Downloaded rockbox source into vmware debian and compiled the simulator, but when I load the test.wps it keeps saying
Code: [Select]
ERR: Failed parsing on line 1 : ERR: Invalid parameter list for token 2: "backdrop image"
or
Code: [Select]
ERR: Failed parsing on line 2 : ERR: Invalid parameter list for token 2: "align left"

Is it not included in the source? Its version 24650.

Edit: test.wps is from the multifont patch (http://www.rockbox.org/tracker/task/10984#comment34486) page.

Edit 2: Nevermind. I redownload source and recompiled and got it to finally work after fiddling with the code.
Title: Re: new multifont patch! who's game enough to test?
Post by: bk on February 16, 2010, 05:30:30 PM
Hello,

I'm the author of the original multifont patch way back when (a few years ago before viewports). Just curious if this patch is based at all on my work. I don't have any problem if it is, it just would be gratifying to know that it finally was merged.

I had grandiose notions of rewriting the font subsystem entirely (I did some preliminary work with integrating freetype into rb source) because font.c and friends are so horrible to work with. Never got around to it though. Hats off to you for finishing the job.
Title: Re: new multifont patch! who's game enough to test?
Post by: JdGordon on February 16, 2010, 05:34:25 PM
I got a bit of inspiration for the font.c changes, but other than that no its all new.
Thanks for your initial work thuogh :)

we would still really like to have a single shared font buffer so if you are still keen....
Title: Re: new multifont patch! who's game enough to test?
Post by: MaW on February 17, 2010, 06:40:51 AM
I cannot say how happy I was to discover that multifont is now in SVN. I've got a theme I designed a long time ago hanging around that only really works with multifont-as-was (visually it just doesn't look good without it), so I'm going to have to update that to the new way and give it an SBS and get back to enjoying my music.

Thank you, thank you, thank you.
Title: Re: new multifont patch! who's game enough to test?
Post by: AsusFreak on March 03, 2010, 09:26:47 AM
If you read this and try to make a new WPS you should have in mind that the syntax in the SVN is changed yesterday.

%Fl|2|12-Nimbus|  causes an error.

%Fl|2|12-Nimbus.fnt| is the right way to do it now.

Happy coding.
Title: Re: new multifont patch! who's game enough to test?
Post by: knight4led on March 09, 2010, 09:28:24 PM
Holy cow! This is the thing I have been waiting for since the day I made my first theme.

Its now time to drag those dusty old themes out, learn all the new tags and make something of them again.