nanogui: Font usage/setup


Previous by date: 13 Jan 2006 00:11:53 +0000 Re: Font usage/setup, Greg Haerr
Next by date: 13 Jan 2006 00:11:53 +0000 Re: Font usage/setup, Greg Haerr
Previous in thread: 13 Jan 2006 00:11:53 +0000 Re: Font usage/setup, Greg Haerr
Next in thread: 13 Jan 2006 00:11:53 +0000 Re: Font usage/setup, Greg Haerr

Subject: RE: [nanogui] Font usage/setup
From: "Martin Kajdas" ####@####.####
Date: 13 Jan 2006 00:11:53 +0000
Message-Id: <CF2BB830A62F914F848E5AD5FFF57AC22914A2@mkmail.MKPROD.COM>

I am using 565 mode.
It only happens with TTF fonts. Fixed fonts are OK.
If I change the foreground color to 1, it (TTF) works and is black enough for me.
Something magical is with foreground=0 and TTF

I will check X11 and GrSetGCUseBackground and get back with the info, but X11 worked the last time I checked.
Martin


-----Original Message-----
From: Greg Haerr ####@####.####
Sent: Thursday, January 12, 2006 4:02 PM
To: Martin Kajdas; ####@####.####
Subject: Re: [nanogui] Font usage/setup


> it does not like foreground color=0 (background color is also 0 (actually
0xFFFF0000) but it is ignored; transparent).
The color=0 should print black and it works correctly with fixed fonts on
nano-X and on X11 (all fonts).

Hmmm..  0xFFFF0000 isn't 0, are hw color format are you running, RGB or 565?
I'm confused by these values.


> When I forced the foreground color (in Text.c of nxlib) to be something
else it displayed correctly.
It must be a bug in nxlib, but where?

Since you're running CVS, it isn't the transparent color bug then, since
that's
known fixed.  Look for usage of GrSetGCUseBackground, that should probably
always be set to TRUE.

Does this happen only with TTF fonts, and not with fixed?  Always works
on X11 but not on your target?

Regards,

Greg


Previous by date: 13 Jan 2006 00:11:53 +0000 Re: Font usage/setup, Greg Haerr
Next by date: 13 Jan 2006 00:11:53 +0000 Re: Font usage/setup, Greg Haerr
Previous in thread: 13 Jan 2006 00:11:53 +0000 Re: Font usage/setup, Greg Haerr
Next in thread: 13 Jan 2006 00:11:53 +0000 Re: Font usage/setup, Greg Haerr


Powered by ezmlm-browse 0.20.