[cairo] Problem with Pango & Cairo on Win32

Bogdan Nicula bogdanni at hotmail.com
Tue Apr 11 14:42:33 PDT 2006


Hi,

I'm using Pango's rendering with the Cairo backend on Windows and I'm 
hitting an assertion inside cairo-win32-font.c, line 1096 in 
_cairo_win32_scaled_font_glyph_init ():

    if ((info & CAIRO_SCALED_GLYPH_INFO_SURFACE) != 0) {
    ASSERT_NOT_REACHED;
    }

Is this a known problem or work in progress?

I don't think I'm doing anything special:

        layout = pango_cairo_create_layout(cr);
        pango_layout_set_alignment(layout, ...);
        pango_layout_set_markup(layout, ..., -1);
        pango_layout_get_extents(layout, NULL, &rect);

        [calculate x,y]

        cairo_save(cr);

        cairo_move_to(cr, x, y);
        pango_cairo_show_layout(cr, layout);
        g_object_unref(layout);

        cairo_restore(cr);

Same thing works perfectly on X11.
Pango 1.12.1, Cairo HEAD.

Any hint appreciated.

Cheers,
Bogdan




More information about the cairo mailing list