Rockbox Technical Forums

Support and General Use => Theming and Appearance Customization => Topic started by: ZincAlloy on April 24, 2008, 06:42:36 PM

Title: Font system discussion
Post by: ZincAlloy on April 24, 2008, 06:42:36 PM
there's this proposal, but I think it wasn't discussed much.. http://www.rockbox.org/twiki/bin/view/Main/FontSystemProposal
Title: Font system discussion
Post by: MarcGuay on April 24, 2008, 06:58:06 PM
There's something related to this happening here:

http://rbthemes.com/fonts/

though I can't find a specific "anti-alias font" patch mentionned. 
Title: Font system discussion
Post by: ZincAlloy on April 24, 2008, 07:02:37 PM
neither can I find one on the tracker
Title: Font system discussion
Post by: ZincAlloy on April 26, 2008, 05:45:44 AM
Well, antialiasing can be done in advance and simply use pre-rendered translucency. If fonts moved from 1bpp to 2bpp you could then use the two "gray" shades as levels of translucency and have some very basic antialiasing. If you increased the depth further you'd get more levels of translucency. Limited (all existing BDF fonts wouldn't be antialiased, but my best guess is that's more or less waht's being done in that Fonts link.

another thing that would really improve looks and readability are semi-translucent drop shadows (like on windows or osx desktops). a white font with a black drop shadow can be read on any kind of background picture.
Title: Font system discussion
Post by: karashata on April 26, 2008, 06:04:38 AM
Well, antialiasing can be done in advance and simply use pre-rendered translucency. If fonts moved from 1bpp to 2bpp you could then use the two "gray" shades as levels of translucency and have some very basic antialiasing. If you increased the depth further you'd get more levels of translucency. Limited (all existing BDF fonts wouldn't be antialiased, but my best guess is that's more or less waht's being done in that Fonts link.

another thing that would really improve looks and readability are semi-translucent drop shadows (like on windows or osx desktops). a white font with a black drop shadow can be read on any kind of background picture.

That would be pretty nice, but I think it would take a decent amount of work to get it working, and to a point where it's not lagging the interface while the fonts are being drawn.  Also, both of these would require getting translucency into Rockbox, something I'm fairly certain isn't there currently.

By the way, has anyone else noticed how off-topic this thread has gotten..?
Title: Font system discussion
Post by: ZincAlloy on April 26, 2008, 06:22:42 AM

That would be pretty nice, but I think it would take a decent amount of work to get it working, and to a point where it's not lagging the interface while the fonts are being drawn.  Also, both of these would require getting translucency into Rockbox, something I'm fairly certain isn't there currently.

By the way, has anyone else noticed how off-topic this thread has gotten..?

Yes, it sure would make it even harder to implement translucency smoothly, but I think it should be considered if the font system gets an overhaul anyway.

and yes.. this is pretty off-topic. could a moderator split this thread into two, please?
Title: Font system discussion
Post by: karashata on April 26, 2008, 06:36:14 AM
Just to get another word in...

What would be nice, in my opinion, would be if the font system could be made to use .ttf and .otf fonts rather than a specific format.  I suspect, though, that *that* particular wish may be difficult to implement well...

...I have never wished more that I knew how to code better than I do...  That would actually be a fun challange, to impliment .ttf and .otf fonts in a reasonable system that makes choosing a font and a size relatively painless...
Title: Re: Font system discussion
Post by: Chronon on April 26, 2008, 04:16:53 PM
I split the topic as neatly as I could.  Hopefully the two discussions still make sense.




<---------------  1337 posts
           ;D
Title: Re: Font system discussion
Post by: karashata on April 26, 2008, 04:56:34 PM
Nice one, Chronon!

I think everything here makes enough sense, and I'm sure once discussion picks up, what little lack of sense someone might have shouldn't be an issue anymore anyway.
Title: Re: Font system discussion
Post by: ZincAlloy on April 26, 2008, 06:15:57 PM
thanks a lot, Chronon!
Title: Re: Font system discussion
Post by: chrisjs169 on April 27, 2008, 12:23:55 PM
There's something related to this happening here:

http://rbthemes.com/fonts/

though I can't find a specific "anti-alias font" patch mentionned. 

The reason you can't find the AA font patch is because it isn't on the tracker.  It's used in mine and kugel's custom builds (for the e200 series) since j0tt gave us permission, but there seems to be a possible issue with whether or not it's completely GPL'd (from what I understand from the logs) - http://www.rockbox.org/irc/log-20080331#02:09:31

Mainly:
02:17:59   saratoga   assuming he was aware you were using GPL code, and he gave you permission, you're probably ok
02:18:07   kugel   http://sse2.net/rb/
02:18:07   saratoga   but we certainly can't do that for SVN
02:18:22   saratoga   we need to be black and white

I talked to j0tt a while back, and while I seem to remember him giving me permission to add it to the tracker, I don't have a copy of that log.  In addition, if for some reason it wasn't completely GPL'd, I don't want to cause any problems by putting it on the tracker.
Title: Re: Font system discussion
Post by: kugel. on April 27, 2008, 12:41:45 PM
I'd assume it is GPL'd, since the font converter he made for it (you can find it on that page too) is certainly GPL (i.e. it stands in the header).

€dit: I see, the site isn't available anymore. I have copies of the files though, and chrisjs too.
Title: Re: Font system discussion
Post by: Llorean on April 27, 2008, 08:20:00 PM
If it's not GPLed, or 100% GPL compatible, it's illegal (and violating his copyright and our license) for you to be using it in your builds. Period.
Title: Re: Font system discussion
Post by: scorche on May 02, 2008, 03:50:05 AM
As a note, I was able to speak with jott who confirmed that his anti-aliasing code is placed under the GPL v2 or later license.
Title: Re: Font system discussion
Post by: NicolasP on May 03, 2008, 06:58:51 PM
Could someone who has the patch maybe add it to the tracker?
Title: Re: Font system discussion
Post by: chrisjs169 on May 03, 2008, 08:52:52 PM
I'm going to test it first, to make sure it sync's, then I'll add it to the tracker.
Title: Re: Font system discussion
Post by: TheKind on May 06, 2008, 12:06:57 PM
Could this be a way to implement multifont support in SVN ? :)