GNOME Bugzilla – Bug 328108
Missing pango_cairo_context_set_font_options
Last modified: 2006-04-01 21:53:12 UTC
Bindings for functions pango_cairo_context_set_font_options and pango_cairo_context_get_font_options are missing. Pango_cairo does not respect normal cairo set_font_options settings, so these are necessary. At the moment pycairo is missing support for modifying font options, but this may become available in the future. (I've written a patch for setting antialiasing mode) A patch is included. It also fixes a bug in codegen code that apparently wasn't used before (one-line change).
Created attachment 57830 [details] [review] The patch
Thanks for the patch, it looks correct. However, I'm afraid this have to wait until the next cycle, 2.10. PyGTK is tied to the GNOME release cycle and GNOME 2.14 is going to use Gtk+ 2.8. Perhaps pango needs to be moved out of pygtk, just as pygobject recently did. But it's too late for that anyway, since it's already API frozen. We haven't branched for 2.10 yet, so this will have to stay in bugzilla until we do.
Committed to HEAD, but I renamed the functions to pangocairo.context_(get|set)_font_options to avoid repeating cairo.