Re: Rendering text with an outline

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
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@xxxxxxxxxxxxxxxxxx>

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@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux