mirror of https://github.com/GNOME/gimp.git
Use PANGO_WRAP_WORD_CHAR so we don't cut off words which are wider than the layer
This commit is contained in:
parent
6d3522c737
commit
afb8d07fcf
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue