After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 328108 - Missing pango_cairo_context_set_font_options
Missing pango_cairo_context_set_font_options
Status: RESOLVED FIXED
Product: pygtk
Classification: Bindings
Component: general
2.8.x
Other Linux
: Normal enhancement
: pygtk-2.10
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2006-01-22 00:08 UTC by Rauli Ruohonen
Modified: 2006-04-01 21:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The patch (2.49 KB, patch)
2006-01-22 00:10 UTC, Rauli Ruohonen
none Details | Review

Description Rauli Ruohonen 2006-01-22 00:08:51 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).
Comment 1 Rauli Ruohonen 2006-01-22 00:10:32 UTC
Created attachment 57830 [details] [review]
The patch
Comment 2 Johan (not receiving bugmail) Dahlin 2006-01-22 16:27:13 UTC
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.
Comment 3 Gustavo Carneiro 2006-04-01 21:53:12 UTC
Committed to HEAD, but I renamed the functions to pangocairo.context_(get|set)_font_options to avoid repeating cairo.