[Gtk-sharp-list] Underline in pango

Sebastian scut@nb.in-berlin.de
Fri, 18 Jun 2004 08:44:27 +0800


Hi,


On Fri, Jun 18, 2004 at 01:32:52AM +0200, Borja S?nchez Zamorano wrote:

> I need to activate the underline in a text.
> 
> Example:
>   Gdk.Pixmap drawable;
>   Gdk.GC gc;
>   Gdk.Color redcolor;
>   Pango.Layout layout;  
> ....
> ....
> ....
> ....
>   layout.FontDescription = Pango.FontDescription.FromString("Sans 10");
>   gc.Foreground = redcolor;
>   layout.SetText("It's not underlined");
>   drawable.DrawLayout(gc, 10, 10, layout);
> 
> 
> How I do it?

Have you tried this?

  layout.SetText("It's not <u>underlined</u>");


> Thanks:
> 	BorSanZa

ciao,
Sebastian

-- 
   |\      _,,,--,,_  ,)  scut@nb.in-berlin.de, http://segfault.net/~scut/pgp
   /,`.-'`'   -,  ;-;;'   5453 AC95 1E02 FDA7 50D2 A42D 427E 6DEF 745A 8E07
_ |,4-  ) )-,_ ) /\__________________________________________________________
~'---''(_/--' (_/-'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~