[gimp/gimp-2-8] Bug 676413: Text to Path cuts off without covering the whole layer
- From: Massimo Valentini <mvalentini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] Bug 676413: Text to Path cuts off without covering the whole layer
- Date: Tue, 30 Oct 2012 17:11:59 +0000 (UTC)
commit 7831da547a86fc3ecd98816032428ed0e60cbea4
Author: Massimo Valentini <mvalentini src gnome org>
Date: Tue Oct 30 18:07:06 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]