[gimp] Use PANGO_WRAP_WORD_CHAR so we don't cut off words which are wider than the layer
- From: Michael Natterer <mitch src gnome org>
- To: svn-commits-list gnome org
- Subject: [gimp] Use PANGO_WRAP_WORD_CHAR so we don't cut off words which are wider than the layer
- Date: Sat, 27 Jun 2009 19:11:38 +0000 (UTC)
commit afb8d07fcfc0be7ea53a329c5dc3bef8bc99a527
Author: Michael Natterer <mitch gimp org>
Date: Sat Jun 27 21:10:34 2009 +0200
Use PANGO_WRAP_WORD_CHAR so we don't cut off words which are wider than the layer
app/text/gimptextlayout.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/app/text/gimptextlayout.c b/app/text/gimptextlayout.c
index e0e7a2e..e570c60 100644
--- a/app/text/gimptextlayout.c
+++ b/app/text/gimptextlayout.c
@@ -133,10 +133,13 @@ gimp_text_layout_new (GimpText *text,
context = gimp_text_get_pango_context (text, xres, yres);
layout = g_object_new (GIMP_TYPE_TEXT_LAYOUT, NULL);
+
layout->text = g_object_ref (text);
layout->layout = pango_layout_new (context);
- layout->xres = xres;
- layout->yres = yres;
+ layout->xres = xres;
+ layout->yres = yres;
+
+ pango_layout_set_wrap (layout->layout, PANGO_WRAP_WORD_CHAR);
g_object_unref (context);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]