GNOME Bugzilla – Bug 353132
Text tool doesn't handle TAB correctly
Last modified: 2008-01-15 14:08:14 UTC
Please describe the problem: beginning a line with a tab and then start writing "whatever" will display " " "w w" "h wh" "a wha" and so on... ... "e whateve" "r whatever" then hitting TAB again "r whateverr " type random letters works "r whateverr qdf" then ENTER to create new line, then TAB again "r whateverr qdf" "f " (where f is the last letter of the previous line) and so forth and so on.. Steps to reproduce: 1. start gimp 2. click add text to the image, then in the text editor box 3. do what is described above Actual results: Expected results: Does this happen every time? yes Other information:
I can't reproduce this with current CVS on Win32. Could this be a GTK+ bug?
Argh, I can reproduce this. I though the lines given as example were supposed to be individual lines below each other.
The bug report puts it as if the problem was in the text editor. But the editor displays the text correctly. The problem is in the generated text layer. Looks like a Pango bug, but we will need to investigate this further.
*** Bug 354945 has been marked as a duplicate of this bug. ***
This is a bug in pango that needs a workaround in GIMP (it can't be changed in pango apparently, says behdad), so 2.2 is also affected when linked against the broken pango version.
Fixed in HEAD. I am not going to backport this right now, because it is not clear to me whether there is a risk of breaking the build for people who have earlier Pango versions. Consequently I won't mark this FIXED either. 2006-09-08 Bill Skaggs <weskaggs@primate.ucdavis.edu> * app/text/gimptextlayout-render.c (gimp_text_layout_render_glyphs): handle tabs correctly, as instructed by behdad. Fixes bug #353132.
Okay, committed to the 2-2 branch as well, hopefully without breaking the build. Resolving now.
*** Bug 376458 has been marked as a duplicate of this bug. ***