Bug 306181 - Multiple issues with the multiline text shape
Summary: Multiple issues with the multiline text shape
Status: RESOLVED UNMAINTAINED
Alias: None
Product: krita
Classification: Applications
Component: Tool/Text (show other bugs)
Version: 2.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
: 329531 330739 342289 342665 346006 349703 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-03 02:15 UTC by Tyson Tan
Modified: 2018-01-01 01:01 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Krita 2.5.2 multiline text highlight won't clear. (90.14 KB, image/png)
2012-09-24 03:51 UTC, Tyson Tan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tyson Tan 2012-09-03 02:15:19 UTC
In Krita 2.5.1 when you are using multiline text tool, after selecting a segment of text, the highlight does not disappear if you changed the properties of the highlighten texts.

Reproducible: Always

Steps to Reproduce:
1. Select Text tool from Tools Docker.
2. Select Multiline mode and insert some texts.
3. Select a segment of texts so they are highlightened.
4. Change the color of this segment.
5. Single click on the text to clear highlight state.
6. The highlight state remains.
7. Input something in the text area.
8. Highlight state is now cleared.

Actual Results:  
The highlight state of multiline texts cannot be cleared after you changed their properties.

Expected Results:  
The highlight state of multiline texts should be cleared after you click anywhere in the text, regardless the propertie's changed or not.

Confirmed on 2.4.x and 2.5.x, Ubuntu 12.04 with Qt 4.8.2, Unity and KDE.
Comment 1 Halla Rempt 2012-09-22 12:12:22 UTC
Hi Tyson,

I tried this with 2.5.2, and I couldn't reproduce the issue :-(. (Though I needed to click somehwere where there was actual text, clicking inside the text shape where there's no text didn't work.) Btw, great picture at http://tysontan.deviantart.com/art/Breeze-in-the-Forest-328337136!
Comment 2 Tyson Tan 2012-09-24 03:45:41 UTC
Hi Boudewijn,

I've re-tesed this issue and discovered the following glitches in Krita 2.5.2's Text Tool under Multiline Mode.

1. When you drag your mouse to create a text box, the actual location of the text box will appear around the point where you release left mouse button, so it always shifts away from the desired location. The dimension of the area is correct, though.

2. Type something in the text box, when the input indicator is still blinking, immediately delete the vector layer where the texts are, you will find the input indicator still blinking on the canvas, and you can even type invisible texts and see the indicator actually moving to the right side as if it is still functional. Now try to drag and create a new text box in the area where the deleted text box was – it brings out the deleted text again, but there is no vector layer created in the layers docker.

If you switch to paint brush tool after finishing typing texts in a text box, deleting its vector layer won't cause such an issue.

3. Create a text box with some text in it, use your mouse to select a segment of texts, then click anywhere else – highlight won't be cleared. But if you use Shift + arrow keys to select texts, it works just fine.

4. Select a segment of texts and change its color, the highlight won't be cleared even use the arrow keys. You have to type something more, like hitting your space bar for once to clear the highlight.

5. Create a text box with some text in it, switch to paint brush tool and the input indicator will disappear. Now you will have to select Basic Shape Manipulation Tool (First tool in the tools docker), double click the existing text to edit it. The Text Tool can only create a new text box, which is not intuitive.

Please notice all the issues I've reported above mainly affects multiline mode of text tool. Artistic mode works fine but there is no enough function for it to be actually useful - for example: no option to change color.

I hope my report will help you to spot the problem, but if you can't repoduce them, please tell me your system configuration.

Thank you for mentioning the picture that I did. It all thanks to developers like you who keep such a great GNU art application usable. I will keep using Krita and report bugs in the future.

:)
Comment 3 Tyson Tan 2012-09-24 03:51:41 UTC
Created attachment 74127 [details]
Krita 2.5.2 multiline text highlight won't clear.

This screenshot shows how highlight remains after I changed the text color to red and hit arrow key once to clear the selection. The highligh was not even correctly rendered because the red text should had turned white. To clear this funny state, I had to hit space bar once or input some more texts.
Comment 4 Tyson Tan 2012-09-24 06:50:23 UTC
I've also tested the issues I reported at 2012-09-24 03:45:41 UTC in Windows version of Krita 2.5.2.0. I can reproduce them all, the application behaved absolutely in the same way.
Comment 5 Halla Rempt 2012-09-27 14:19:09 UTC
Thanks for the notes! I can reproduce a good many of the issues on my new win7 laptop -- though I doubt they are windows-specific, actually. Especially the continue-typing-after-deleting-they-layer is weird!
Comment 6 Tyson Tan 2012-09-28 00:56:30 UTC
I can repoduce all those issues I've reported above both on Ubuntu 12.04.1(Unity / KDE) and Windows 7 X64. In fact I discovered them first on Ubuntu. I wonder if the version of Qt and KDE have something to do with this? My Qt version is 4.8.2 and KDE 4.8.5. I got them from Kubuntu PPA and Kubuntu Backport PPA. Or, because I build my own Calligra Suite binaries, is it possible to be a building issue?

All these problems are there since the very first day I started to use Krita...from version 2.4.0 and they have been appeared the same on both Ubuntu and Windows 7 for me.
Comment 7 Tyson Tan 2012-09-30 01:41:31 UTC
I've done a little more research on this problem on a freshly installed Ubuntu 12.10, with Krita shipped from its official repository. In 12.10 the version of KDE is now 4.9.1 and Qt 4.8.3. I can still reproduce all those problems I had reported before. 

Here are the some more detail:

If you use your mouse to select a segment of text, clicking on the highlighted segment will not clear the highlight state, while clicking on the non-highlighted area or hitting arrow keys will do it without any problem. But in common sense (like the behavior in other text editor) the high light state should be cleared when you single click your mouse button regardless of where you've clicked. 

After you selected and changed the properties of the texts (like changing its color), use arrow keys to clear the “selected state” afterward. You will see texts change color accordingly, however, the highlighted background will still persist, while no texts is actually selected. Input some new characters will clear this non-functional highlight.

When you select a segment of text, the input indicator will always move to the left-most side of the segment. In common sense, it should be on the right side.

Hope these information helps on narrowing down the issue. Good luck!
:)
Comment 8 Halla Rempt 2014-02-06 15:25:45 UTC
*** Bug 330739 has been marked as a duplicate of this bug. ***
Comment 9 Halla Rempt 2015-01-10 13:33:17 UTC
*** Bug 342665 has been marked as a duplicate of this bug. ***
Comment 10 David REVOY 2015-01-19 08:16:31 UTC
>> 1. Select Text tool from Tools Docker. 
>> 2. Select Multiline mode and insert some texts. 
>> 3. Select a segment of texts so they are highlightened.
>> 4. Change the color of this segment. 
>> 5. Single click on the text to clear highlight state. 
>> 6. The highlight state remains.
I confirm. That was also happening to me in 2.8.x series for all multiline text I did on Pepper&Carrot, but I found a small workaround : it was a short sequence of clicking in the persistant selection label, reselecting the 'shape handling' tool, click outside the box , reselect it and make a tiny drag&drop to shake the box to remove the highlight. I made it as many time as I entered a speechbubble, it was really dragging me down to make such a 'weird click dance' for each speech bubbles , but at the end the only way for me to get speechbubble in Krita 2.8 stable. So, I accepted. 

Nowaday, on 2.9beta ; I confirm the highlight is persistant , the text keep visually selected , ( blue background color  ) and can't be removed. Even with my workaround, even when the shape is deselected. It broke totally the usage for texts/speechbubble in Krita on my install.
Comment 11 Halla Rempt 2015-01-29 11:48:55 UTC
*** Bug 342289 has been marked as a duplicate of this bug. ***
Comment 12 Halla Rempt 2015-01-29 12:20:53 UTC
*** Bug 329531 has been marked as a duplicate of this bug. ***
Comment 13 Tyson Tan 2015-02-03 01:46:21 UTC
As of 2.9 beta2 git9715bb5, The Tool options for Text tool seemed to be messed up with others':

1. Text tool >> Artistic or Multiline;
2. Drag a text box;
3. Moving the cursor over the canvas causes Tool options Docker blinking between Text Tool's and others tool's. Sometimes Gradient filling, sometimes Shape handling;
4. During the blinking, any text input when other Tool options was showing would be ignored.

Workaround:
Tested in Multiline mode.
1. Stop moving the cursor, or moving the cursor out of the canvas would stop the Tool options from blinking;
2. Try a few times moving the cursor out from canvas until the Tool options showing the right stuff;
3. Use keyboard only. Arrow keys to navigate the indicator, Shift+Arrow keys to highlight multiple letters;
4. Press Space to clear persistent highlight.

Other issues:
While using Shape handling tool to resize textbox, the handles response to input very slowly.
I can enter text-editing mode when I use Text tool to click the textbox, ONLY when Tool options docker was show Text tool's stuff.
Comment 14 Halla Rempt 2015-08-11 10:34:28 UTC
*** Bug 349703 has been marked as a duplicate of this bug. ***
Comment 15 Halla Rempt 2015-08-11 10:34:52 UTC
*** Bug 346006 has been marked as a duplicate of this bug. ***
Comment 16 Halla Rempt 2015-08-17 12:35:42 UTC
Inputting text on Windows with e.g. a Polish keyboard, where alt-s should input œ is broken, too.
Comment 17 Tepee 2015-10-12 09:47:15 UTC
Hello,
as it is a global subject about Multiline text shape, I report issues I meet.
Version: 2+git20151008+r37-61~ubuntu15.04.1

1- Big performance issue when writing text (nearly 1 sec for each letter to appear)
2- Krita crashes when deleting all the text by pressing "Supp" and waiting.
3- Very annoying: when I change of vector layer to edit an another existing text, the new selected text can't be edited after double-click on it. I have to close and re-open Krita. Double-click then works, for this one. I have to restart each time I want to edit another text...
Comment 18 Josh 2015-12-04 02:16:34 UTC
When i try to use the multiline what happens is that the mouse began to flicker and blinking and is truly hard to manipulate in that state. It happens when i press the text icon, immediately after i do it the mouse began blinking restlessly and changing tools and dockers making the program hardly impossible to use.
Comment 19 Halla Rempt 2017-01-24 09:57:59 UTC
Resolving all text tool bugs as Later, since the text tool will no longer be developed, but replaced.
Comment 20 Halla Rempt 2017-12-30 10:52:06 UTC
We just merged the new text tool.
Comment 21 Tyson Tan 2018-01-01 01:01:20 UTC
Horray! The last piece pf the puzzle! Thank you very much and happy new year! :D