Discussion:
FreeType Font display issue
Allen Yang
2007-09-13 16:05:28 UTC
Permalink
Hi,



I got a problem on display FreeType Font.



I am using uClinux 2.6.17, Nano-X 0.90 with FreeType font 2.1.7 in my
project. Basically the FreeType font is working for some colors (BLUE,
RED, MAGENTA...). But for other colors (GREEN, CYAN, BROWN, WHITE...),
there are some dots with different color displayed at the edge of each
character.



For example, I display a string "GREEN" in GREEN color on my LCD.
"GREEN" is displayed in green color with some dots at the edge of each
character displayed in yellow color.



After I did a research on which color may have the same issue, I found
out that if "G" component in "RGB" color definition is not 0, the
problem will happen.



I used "GR_TFKERNING" and "GR_TFANTIALIAS" when I created the font in my
application.



I wrote my own LCD framebuffer driver in uClinux. I am not sure if that
may cause this issue.



Any suggestion on this issue will be highly appreciated.



Regards,



Allen






The information contained in this email and attachments to this email are the proprietary and confidential property
of Nucomm, Inc. The information is provided in strict confidence and shall not be reproduced, copied, or
used (partially or wholly) in any manner without prior, express written authorization of Nucomm, Inc.
Greg Haerr
2007-09-13 17:07:43 UTC
Permalink
Post by Allen Yang
I am using uClinux 2.6.17, Nano-X 0.90 with FreeType font 2.1.7 in my
project. Basically the FreeType font is working for some colors (BLUE,
RED, MAGENTA...). But for other colors (GREEN, CYAN, BROWN, WHITE...),
there are some dots with different color displayed at the edge of each
character.

Make sure you've turned off anti-aliasing, this will alpha-blend
the colors to the background, I think. See demos/nanox/ftdemo.c
for details on controlling freetype.
Post by Allen Yang
I used "GR_TFKERNING" and "GR_TFANTIALIAS" when I created the font in my
application.

Remove GRTF_ANTIALIAS and try that.

Another option if this doesn't change things is to use the CVS
code, or the microwindows-src-snapshot.tar.gz on the website,
which now supports the latest Freetype 2.3.x release. The
FT2 driver uses a different method for antialiasing drawing.

Regards,

Greg

Loading...