[Gtk-sharp-list] Example of Pango.FontDescription

Martin Willemoes Hansen mwh@sysrq.dk
Thu, 04 Sep 2003 21:16:06 +0200


On Thu, 2003-09-04 at 16:33, Todd Berman wrote:
> I am just wondering if anyone has any examples of using
> Pango.FontDescription, particularly in Gtk.TextTag.
> 
> Right now when I set it with:
> 
> Tag.FontDesc = Gtk.Widget.DefaultStyle.FontDescription; //or .Copy() or
> .CopyStatic();
> 
> I get:
> 
> (<unknown>:1348): GLib-GObject-WARNING **: gvalue.c:93: cannot
> initialize Gvalue with type `GBoxed', this type has no GTypeValueTable
> implementation
> 
> (<unknown>:1348): GLib-GObject-CRITICAL **: file gboxed.c: line 487
> (g_value_set_boxed): assertion `G_VALUE_HOLDS_BOXED (value)' failed
> 
> (<unknown>:1348): GLib-GObject-CRITICAL **: file gobject.c: line 1019
> (g_object_set_property): assertion `G_IS_VALUE (value)' failed
> 
> And when you attempt to access it you get a nullref.
> 
> Any pointers would be appreciated.

Yes, I think that Pango.FontDescription is not marshalled correctly yet,
im having problems with is as well in DiaCanvas#

Please fill a bug-report.
-- 
Martin Willemoes Hansen

--------------------------------------------------------
E-Mail	mwh@sysrq.dk	Website	mwh.sysrq.dk
IRC     MWH, freenode.net
--------------------------------------------------------