[gimp] Bug 676413: Text to Path cuts off without covering the whole layer



commit b25f9abedfec6d7c70f0b4b85a81799539ab73e8
Author: Massimo Valentini <mvalentini src gnome org>
Date:   Tue Oct 30 18:07:07 2012 +0100

    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 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/app/text/gimptext-vectors.c b/app/text/gimptext-vectors.c
index 7a79055..d47a703 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);



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