[Gtk-sharp-list] BadFont for Gdk.Drawable.DrawText

Evgeny Pirogov pirogov.e at gmail.com
Mon Jan 16 04:20:23 EST 2006


I have simple problem with my Gtk application and Text Drawing. If I use
this code sample, then my program has been closed from X Window server :

[Gtk.Widget()]
Gtk.DrwawingArea area;

....

Gdk.GC gc = new Gdk.GC();
Gtk.DrwawingArea.DrawText(Gdk.Font.FromDescription(
FontDescription.FromString("Sans")), gc, 0,0,"Hello");

Message from X Window server is : The programm <unknown> reised an X Window
System error. The error was "Bad Font (invalid font parameter)"

May by i need special changes for Gdk.GC before drawing ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20060116/903e0fe4/attachment.html


More information about the Gtk-sharp-list mailing list