Re: XOR, was : Drawing text into a drawing area with Pango
- From: Owen Taylor <otaylor redhat com>
- To: Bryan Brown <bbrown saltmine radix net>
- Cc: Peter Krueger <pkrueger appss de>, gtk-app-devel-list gnome org
- Subject: Re: XOR, was : Drawing text into a drawing area with Pango
- Date: Wed, 18 Feb 2004 10:28:56 -0500
On Wed, 2004-02-18 at 08:06, Bryan Brown wrote:
The gc has its function set to GDK_XOR for the ghosting, and it's then set
to GDK_COPY for the final stamping into the drawing area. This worked
fine with gtk 1.2. With 2.x and the above layout approach, however, the
XOR-ing isn't happening ... the text is being stamped into the background
with the mouse motion, leaving a swath of text all over the drawing area.
Any suggestions for how to do the ghosting with pango? I thought using
the GDK_XOR function in the gc would do it, but it doesn't seem to.
GTK+-2.x typically is using anti-aliasing to draw text, and XOR simply
isn't a meaningful operation for anti-aliased text. So you'll probably
have to switch to actually redrawing to clear the previous text
position.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]