Re: Rendering text with an outline
- From: Dov Grobgeld <dov grobgeld gmail com>
- To: Christian Schaubschlaeger <cs gup uni-linz ac at>
- Cc: gtk-list gnome org
- Subject: Re: Rendering text with an outline
- Date: Thu, 5 Mar 2009 21:08:37 +0200
I cleaned up my example a bit and put it in GnomeLive. See:
http://live.gnome.org/OutlineLabelRegards,
Dov
2009/3/5 Dov Grobgeld
<dov grobgeld gmail com>
Here's my solution in Vala. It creates a custom widget that inherits from GtkLabel and thus receives its label. The neat thing about this approach is that it then inherits all the size negotiations from GtkLabel, but it than overrides its expose handle, and then draws its PangoLayout first in one color, and then its outline in another color.
Regards,
Dov
[stuff deleted]
2009/3/5 Christian Schaubschlaeger
<cs gup uni-linz ac at>
Hello!
Is it possible to display the text of a gtk label in
a certain color, and each letter of the text shall have
a border in a different color (eg. black letters with
white border; for better readability on varying backgrounds).
Is there a way to achieve this in gtk+? Maybe using Pango?
Thanks and best regards
Christian
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]