GNOME Bugzilla – Bug 472908
Make pango.Context non-instantiable
Last modified: 2007-09-02 20:02:22 UTC
Those should be pango.Context and pango.FontMap. pango.Renderer is already non-instantiable. Alternatively, pango.Context() can be changed to take a fontmap argument and return fontmap.create_context(), but that deviates from the C API.
Also pango.Font
And pango.FontFace and pango.FontFamily
pango.FontMap will become non-instantiable as soon as the GObject type receives the 'abstract' flag (G_TYPE_FLAG_ABSTRACT). Probably the others as well.
Makes sense for all except for pango.Context where we never subclass, so can't be made abstract.
Filed bug 472924 to make Font* abstract in pango.