From b25f9abedfec6d7c70f0b4b85a81799539ab73e8 Mon Sep 17 00:00:00 2001 From: Massimo Valentini Date: Tue, 30 Oct 2012 18:07:07 +0100 Subject: [PATCH] Bug 676413: Text to Path cuts off without covering the whole layer Use an unbounded cairo_recording_surface to extract a cairo_path_t from a pango_layout. --- app/text/gimptext-vectors.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/text/gimptext-vectors.c b/app/text/gimptext-vectors.c index 7a79055906..d47a703be8 100644 --- a/app/text/gimptext-vectors.c +++ b/app/text/gimptext-vectors.c @@ -75,13 +75,7 @@ gimp_text_vectors_new (GimpImage *image, context.vectors = vectors; - /* A cairo_t needs an image surface to function, so "surface" is - * created temporarily for this purpose. Nothing is drawn to - * "surface", but it is still needed to be connected to "cr" for - * "cr" to execute cr_glyph_path(). The size of surface is - * therefore irrelevant. - */ - surface = cairo_image_surface_create (CAIRO_FORMAT_A8, 2, 2); + surface = cairo_recording_surface_create (CAIRO_CONTENT_ALPHA, NULL); cr = cairo_create (surface); gimp_image_get_resolution (image, &xres, &yres);