Re: Rendering text with an outline



I cleaned up my example a bit and put it in GnomeLive. See:

http://live.gnome.org/OutlineLabel

Regards,
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]