[cairo] Pango / Cairo problems on Win32
Behdad Esfahbod
behdad at behdad.org
Sat Sep 1 19:24:30 PDT 2007
On Sat, 2007-09-01 at 13:14 -0400, Gerdus van Zyl wrote:
> 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.
Hi,
There's no way we can help you without seeing the code.
behdad
> Thank You.
>
> ~Gerdus van Zyl
--
behdad
http://behdad.org/
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
More information about the cairo
mailing list