Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Anti-aliased fonts?
« previous next »
  • Print
Pages: [1] 2

Author Topic: Anti-aliased fonts?  (Read 4676 times)

Offline iPodFoo

  • Member
  • *
  • Posts: 221
  • Ya dig?
    • iPod Nano Rockbox Blog
Anti-aliased fonts?
« on: August 25, 2006, 02:05:28 PM »
Anybody know if Rockbox will ever include support for anti-aliased fonts like truetype or postscript?

And also, if there will be more advanced "formatting" options for the text? Be nice to set a border width to stop text being nudged right up to the edge or set kerning or paragraph spacing etc?

Its at times like this I wish I was a programmer rather than a designer.  :(

ps. How do you get the "new" banner next to your topic in this forum?
« Last Edit: August 25, 2006, 02:07:36 PM by ipodfoo »
Logged
Visit my blog at modprojects.blogspot.com for some iPod Nano goodies!

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Anti-aliased fonts?
« Reply #1 on: August 25, 2006, 02:57:46 PM »
The "New" banner just shows up in topics where there are posts that you haven't read.

Antialiased fonts are *extremely* unlikely. Doing the antialiasing realtime would be exceptionally slow and bad for battery life. On players that have them, they're usually pre-rendered, not something that meshes well with customizable backdrops and such like we have.
Logged

Offline iPodFoo

  • Member
  • *
  • Posts: 221
  • Ya dig?
    • iPod Nano Rockbox Blog
Re: Anti-aliased fonts?
« Reply #2 on: August 25, 2006, 03:37:46 PM »
Shame anti-aliased fonts cant be used. makes quite a difference it quality. I take it, it would be too much to compute if you mapped each character to an image, even if it was just for white backgrounds?

What about my other question about extra formatting options? Such as different font sizes on the same page? Or able to kern or set margins etc?

Cheers.
Logged
Visit my blog at modprojects.blogspot.com for some iPod Nano goodies!

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Anti-aliased fonts?
« Reply #3 on: August 25, 2006, 11:47:42 PM »
Why would you do it just for white backgrounds?

Different fonts (which would include sizes) and margins are planned features eventually. I'm not really sure how well kerning could be supported, at all.
Logged

Offline iPodFoo

  • Member
  • *
  • Posts: 221
  • Ya dig?
    • iPod Nano Rockbox Blog
Re: Anti-aliased fonts?
« Reply #4 on: August 26, 2006, 05:57:28 AM »
I spose kerning isnt important.

I look forward to when the formatting features are implemented.  ;)

Cheers.
Logged
Visit my blog at modprojects.blogspot.com for some iPod Nano goodies!

Offline madsic

  • Member
  • *
  • Posts: 110
    • Vi har pander!
Re: Anti-aliased fonts?
« Reply #5 on: September 13, 2006, 10:22:43 AM »
Quote from: Llorean on August 25, 2006, 11:47:42 PM
Why would you do it just for white backgrounds?

Different fonts (which would include sizes) and margins are planned features eventually. I'm not really sure how well kerning could be supported, at all.

... white or any other monochrome background because then the anti-aliasing could be done with that colour in mind. Say a black font on white background, which should have grey intermediate pixels. Black on blue should have black-blueish pixels etc....

Just to say that I'd like that too (and I'm sure the developers care deeply....  ;) )
Logged

Offline pabouk

  • Member
  • *
  • Posts: 387
Re: Anti-aliased fonts?
« Reply #6 on: September 13, 2006, 11:09:16 AM »
This problem is not so hard to solve. For example values of pixels if the font is rendered in black could be multiplied with values of background pixels.

So 100% black (value 0) pixel of the font would give 100% black and 50% gray would give colour of the backround darkened to 50% of the brightness of the original background.
« Last Edit: September 14, 2006, 03:40:54 AM by pabouk »
Logged

Offline LinusN

  • Member
  • *
  • Posts: 1914
Re: Anti-aliased fonts?
« Reply #7 on: September 13, 2006, 11:30:59 AM »
Now do the math and see how much slower this will get with a fixed-point multiplication for each rendered pixel.
Logged
Archos Jukebox 6000, Recorder, FM Recorder/iAudio X5/iriver H1x0, H3x0/Toshiba Gigabeat F20/iPod G5, G5.5

Offline pabouk

  • Member
  • *
  • Posts: 387
Re: Anti-aliased fonts?
« Reply #8 on: September 14, 2006, 03:47:20 AM »
I agree that it would be much slower than the current solution. I just wanted to point out that it is possible to have a solution with pre-rendered antialiased fonts even without an alpha mask.
If someone wants to make a patch we could see the real speed :)
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Anti-aliased fonts?
« Reply #9 on: September 14, 2006, 05:23:04 AM »
You do realize that with monochrome fonts, what you've described is a font that is *solely* a form of alpha mask. ;)
Logged

Offline 3ngel

  • Member
  • *
  • Posts: 11
Re: Anti-aliased fonts?
« Reply #10 on: April 04, 2007, 12:11:17 PM »
I would like to put up this thread, 'cause after some time i wanted to see if there were any progress in antialiased fonts, 'cause my intention was (as ever) to switch to rockbox.

Reading this thread i rightly understood that doing a "realtime" antialiasing is cpu consuming and it's not possible with ipod (or others CPU).

My idea i already said in another post was to add support for COLOR fonts, or at least GREYSCALE fonts. In this way one could do a pre-renderized set of colored or greyscale antialiased fonts.

I did not receive reply to this suggestion, so i would ask now, what do you think about it (that is add support for color/greyscale fonts)? :)
« Last Edit: April 04, 2007, 12:12:50 PM by 3ngel »
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Anti-aliased fonts?
« Reply #11 on: April 04, 2007, 12:24:36 PM »
How could this work without translucency.
Logged

Offline 3ngel

  • Member
  • *
  • Posts: 11
Re: Anti-aliased fonts?
« Reply #12 on: April 04, 2007, 01:33:18 PM »
Because there would be no need for translucency.
The aliased fonts would be pre-rendered and adapted to the specific theme, for example on white background.
The only color hole would be (in the extreme case) on the background of the font character, that is a simple one color hole.
The concept of color fonts presume that each set is adapted to the theme that uses it.
Obviosly that wont work that well on pictures background, but you can't have anything, and in every case this would be better that not having any antialias in any case :)
« Last Edit: April 04, 2007, 01:35:59 PM by 3ngel »
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Anti-aliased fonts?
« Reply #13 on: April 04, 2007, 02:22:00 PM »
So the whole font system should be rewritten for a change that only works on the few themes that have a solid color background that is identical in all screens, and that we should increase the font buffer, as is necessary for this, at the cost me everyone who does not use a theme designed like this?
Logged

Offline 3ngel

  • Member
  • *
  • Posts: 11
Re: Anti-aliased fonts?
« Reply #14 on: April 04, 2007, 02:27:22 PM »
Well, i don't know if this is so complicated to develop.
My suggestion is just one for those who don't use a picture background, but a solid background, and i think it's kinda 50%.
Don't take it personally, i think the more the options available the best a program is :)
It would be something like "I want to do or use a theme with a solid background and i have this goodies of antialiased fonts" :)

EDIT:
Or you can do just a switch for the theme that can signal the core that uses color fonts. In other case the kernel uses standard fonts.
« Last Edit: April 04, 2007, 02:37:26 PM by 3ngel »
Logged

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Anti-aliased fonts?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.092 seconds with 15 queries.