GNOME Bugzilla – Bug 669371
Unable to initialize Pango.AttrFontDesc
Last modified: 2012-02-08 04:49:44 UTC
Tried a couple ways to initialize a pango font description attribute. None succeeded in such a way that the font description could actually be set. >>> desc = Pango.FontDescription("monospace 12") >>> attr = Pango.AttrFontDesc(desc=desc) Traceback (most recent call last):
+ Trace 229601
>>> Pango.AttrFontDesc.new(desc) Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: type object 'AttrFontDesc' has no attribute 'new' >>> attr = Pango.AttrFontDesc() >>> attr.desc = desc Traceback (most recent call last): File "<stdin>", line 1, in <module> RuntimeError: unable to set value for field >>>
this is actually a pango bug https://bugzilla.gnome.org/show_bug.cgi?id=646788
*** This bug has been marked as a duplicate of bug 646788 ***