[cairo] cairo_font.c patch
c99drn at cs.umu.se
Fri May 28 05:16:32 PDT 2004
On Thu, 2004-05-27 at 18:44 +0200, Maarten Breddels wrote:
> There is a bug in cairo_font.c:_cairo_glyph_surface_init.
> (Or cairo_image_surface.c:_cairo_image_surface_set_image has to be
> When the surface->backend != image->backend, but the surface is using
> the image backend as 'similars', glyph images aren't copied to the
> glyph->surface since the _cairo_image_surface_set_image function isn't
> implemented. This patch does an extra check on the similar surface
> backend, to avoid the _cairo_surface_set_image.
> Maybe there is a better way to detect if the backend uses image surfaces
> as similars, because now, a surface is created and destroyed for each
> glyph created.
This patch should do it, no unessisary surfaces created this way.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1609 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20040528/8cbaa1d0/cairo-font-fix.bin
More information about the cairo