[cairo] GObject
Federico Mena Quintero
federico at ximian.com
Wed Jan 11 10:36:38 PST 2006
On Wed, 2006-01-11 at 08:41 -0800, Bill Spitzak wrote:
> It seems that Cairo itself has successfully implemented a large thing
> (the cairo_t) without using GObject or any "base" library. I see no
> reason that the text layout cannot do the same thing.
>
> What exactly does GObject provide and why is it so hard to remove from
> Pango?
It provides a flexible type system, which happens to be useful for a
wide variety of applications.
http://developer.gnome.org/doc/API/2.0/gobject/index.html
Other than reference counting, Pango doesn't really use the "exotic"
features of the GObject/GType type system. There's only one usage of
GTypeInterface (java-like interfaces) in PangoCairoFontMap.
It is not hard to remove from Pango except for requiring Real Work, in
constrast with just trying to find excuses not to use it.
It's LGPL. The license is your friend.
Federico
More information about the cairo
mailing list