kingconga42
Still Fresh
i saw this on metafilter, and thought it might be of interest to gp2x developers-
http://grc.com/ctwhat.htm
forgive me if it's old news...
-justin
http://grc.com/ctwhat.htm
forgive me if it's old news...
-justin
I hacked SDL_ttf a few months back to render sub-pixel anti-aliased fonts.kingconga42 posted on Mar 1 2006 at 10:43 PM said:i saw this on metafilter, and thought it might be of interest to gp2x developers-
http://grc.com/ctwhat.htm
Nice. :blink:eWoud posted on Mar 2 2006 at 02:30 AM said:I hacked SDL_ttf a few months back to render sub-pixel anti-aliased fonts.kingconga42 posted on Mar 1 2006 at 10:43 PM said:i saw this on metafilter, and thought it might be of interest to gp2x developers-
http://grc.com/ctwhat.htm
While doing so breaking bold and italic styles and all the blended font methods, so it's not really usable for anything but text on one-color backgrounds.
I'm working an a text reader (plain text, no fancy html or rtf) to replace the monster that comes with the gp2x. Rendering is identical to that of Xorg+freetype. Really is a joy to read.
Here's what it looks like, compared to gamepark's doing:
Is there a text reader for the gp32 that uses sub pixel rendering? I've been thinkng about putting some books on my gp32.eWoud posted on Mar 2 2006 at 01:30 AM said:I hacked SDL_ttf a few months back to render sub-pixel anti-aliased fonts.kingconga42 posted on Mar 1 2006 at 10:43 PM said:i saw this on metafilter, and thought it might be of interest to gp2x developers-
http://grc.com/ctwhat.htm
While doing so breaking bold and italic styles and all the blended font methods, so it's not really usable for anything but text on one-color backgrounds.
I'm working an a text reader (plain text, no fancy html or rtf) to replace the monster that comes with the gp2x. Rendering is identical to that of Xorg+freetype. Really is a joy to read.
Here's what it looks like, compared to gamepark's doing:
The text reader for the gp32 is very very nice.christo930 posted on Mar 2 2006 at 04:16 AM said:Is there a text reader for the gp32 that uses sub pixel rendering? I've been thinkng about putting some books on my gp32.eWoud posted on Mar 2 2006 at 01:30 AM said:I hacked SDL_ttf a few months back to render sub-pixel anti-aliased fonts.kingconga42 posted on Mar 1 2006 at 10:43 PM said:i saw this on metafilter, and thought it might be of interest to gp2x developers-
http://grc.com/ctwhat.htm
While doing so breaking bold and italic styles and all the blended font methods, so it's not really usable for anything but text on one-color backgrounds.
I'm working an a text reader (plain text, no fancy html or rtf) to replace the monster that comes with the gp2x. Rendering is identical to that of Xorg+freetype. Really is a joy to read.
Here's what it looks like, compared to gamepark's doing:
CHRIS
so it's not really usable for anything but text on one-color backgrounds.
kingconga42 posted on Mar 2 2006 at 06:09 AM said:so it's not really usable for anything but text on one-color backgrounds.
horizontal text on one color backgrounds only, if i understand correctly...
yeah, a better text reader would be great too... wasnt there a pdf reader in the works somewhere?
DaveC posted on Mar 2 2006 at 08:08 AM said:kingconga42 posted on Mar 2 2006 at 06:09 AM said:so it's not really usable for anything but text on one-color backgrounds.
horizontal text on one color backgrounds only, if i understand correctly...
yeah, a better text reader would be great too... wasnt there a pdf reader in the works somewhere?
Yeah it uses the RGB triplet of an LCD to simulate higher resolution. Since each pixel is made of 3 vertical bars you can make finer lines by just choosing the color of the pixel. For a *simple* example normally it would be impossible to make the letters "x" or "y" with only 3 pixels but using this method you can do it. This is why it only works horizontal, and only for text and you are limited in color choices.
By knowing what colors light what triplets and the intensity of the triplets you can do more complex anti-aliasing of fonts by manipulating these.
![]()
Freetype does have a vertical render mode for LCDs (FT_RENDER_MODE_LCD_V), but SDL_ttf doesn't support anything vertical. Hacking sub-pixel rendering into every part would take a lot of work.kingconga42 posted on Mar 2 2006 at 08:09 AM said:horizontal text on one color backgrounds only, if i understand correctly...so it's not really usable for anything but text on one-color backgrounds.
Ask theoddbot, he was working on a poppler-based pdf reader.kingconga42 posted on Mar 2 2006 at 08:09 AM said:yeah, a better text reader would be great too... wasnt there a pdf reader in the works somewhere?
taras posted on Mar 2 2006 at 02:02 PM said:A 3x1 pixel letter at that.
To be honest I prefer anti-aliasing to sub-pixel rendering (on a laptop screen, at least). Sub-pixel just looks muddy and sometimes messes up (the K in Courier New for example).
synkro posted on Mar 2 2006 at 10:00 AM said:you really think, somebody could read a 3 pixel letter? ...
taras posted on Mar 2 2006 at 10:11 AM said:On a related matter... does anyone know what the text says under the GP2X logo on the green (1.0.1) boot screen? It looks like Something something US something.....
radek seems to mean he'll pre-render the characters of a fixed-width font. As long as you don't move them by 'sub-pixel' amounts or try to use differnt fg/bg colors than pre-rendered for, this should work fine.rokdcasbah posted on Mar 2 2006 at 05:00 PM said:radek: wouldn't trying to use sub-pixels when rendering bitmaps create big color distortions?