[cairo] Pango / Cairo problems on Win32

Gerdus van Zyl gerdusvanzyl at gmail.com
Sat Sep 1 10:14:09 PDT 2007


I tried to convert all my text rendering from the cairo "toy" api to
pango/cairo. But in some instances I get the following:

C:\uxpython\src\uxGUI\controls\uBase.py:1472: PangoWarning:
pango_shape called with bad font, expect ugly output
  cr.show_layout(layout)
C:\uxpython\src\uxGUI\controls\uBase.py:1472: PangoWarning:
pango_font_get_glyph_extents called with bad font, expect ugly output
  cr.show_layout(layout)
C:\uxpython\src\uxGUI\controls\uBase.py:1472: PangoWarning:
_pango_cairo_font_install called with bad font, expect ugly output
  cr.show_layout(layout)

followed by multiple:
cairo_win32_scaled_font_select_font:SelectObject: The parameter is incorrect.

I get this error on most runs of my programs (sometimes does work
right) but not on my other programs that have more text. Font
selection has absolutely no effect, even using default "sans" or
"mono" gives the exact same.

Thank You.

~Gerdus van Zyl


More information about the cairo mailing list