Re: problems with PangoFT2 -- help anyone ?



Sven Neumann <sven gimp org> writes:

> Basically, what the code does is to use
>    pango_context_list_families (context, &families, &n_families);
> with a PangoFT2 context. This seems to work fine and I store the array
> of families for later use just as GtkFontSelection does. Later when
> a font family is selected, the code calls
>    pango_font_family_list_faces (family, &faces, &n_faces);
> using a family pointer out of the array of stored families. Even though
> calling pango_font_family_get_name() on the same family pointer seems
> to give the correct result, the array of faces returned by 
> pango_font_family_list_faces() is sometimes totally borked and gimp dies 
> shortly after when it tries to access one of these faces as a
> PangoFontFace.

Well, it's completely possible that the code has bugs in it;
unlike the Xft and X11 backends, I didn't have an immediate
way of testing it using just GTK+. 

The code looks OK to me on inspection, but that doesn't prove
much.

Regards,
                                        Owen




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]