Bug 439830 - Extreme high values of dpi make the Text Tool not work (no warning)
Summary: Extreme high values of dpi make the Text Tool not work (no warning)
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: Tool/Text (show other bugs)
Version: 4.4.5
Platform: Compiled Sources Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-14 09:15 UTC by Chenille33
Modified: 2021-08-07 21:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
illustration to see in action the bug (82.48 KB, image/png)
2021-07-14 09:15 UTC, Chenille33
Details
some text as an example (37.43 KB, application/x-krita)
2021-07-18 10:11 UTC, Ahab Greybeard
Details
empty file where text not working (20.71 KB, application/x-krita)
2021-07-19 13:47 UTC, Chenille33
Details
ppi resolution adjustment (66.52 KB, image/png)
2021-07-19 15:31 UTC, Ahab Greybeard
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chenille33 2021-07-14 09:15:38 UTC
Created attachment 140044 [details]
illustration to see in action the bug

SUMMARY


STEPS TO REPRODUCE
1. Create new image
2. Click on Text tool
3. Drag your area....nothing hapend.

OBSERVED RESULT
Nothing

EXPECTED RESULT
A text area ?

SOFTWARE/OS VERSIONS
Windows: 10
Comment 1 Halla Rempt 2021-07-14 09:17:58 UTC
Are you sure the text editor window isn't on another monitor? It works fine here.
Comment 2 Chenille33 2021-07-14 09:26:27 UTC
(In reply to Halla Rempt from comment #1)
> Are you sure the text editor window isn't on another monitor? It works fine
> here.

Yeah I've verified before posting.
Comment 3 Bug Janitor Service 2021-07-15 04:33:43 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 4 Ahab Greybeard 2021-07-15 15:35:39 UTC
The strange thing is that a Vector Layer hasn't been created for the text.
It looks like you've drawn a rectangular selection (using the Rectangular Selection Tool) and then clicked on the SVG Text Tool.

You need to use the SVG Text Tool to draw a text box area.
Comment 5 Chenille33 2021-07-15 15:43:28 UTC
(In reply to Ahab Greybeard from comment #4)
> The strange thing is that a Vector Layer hasn't been created for the text.
> It looks like you've drawn a rectangular selection (using the Rectangular
> Selection Tool) and then clicked on the SVG Text Tool.
> 
> You need to use the SVG Text Tool to draw a text box area.

No i swear I using only text tool...
The strange thing is : one day it's working, and now it's not working (using the same version...). Maybe I don't see an option or I accidentally press a keys combination ? If yes what are the setting or combination to disable the text tool, and why made this ?
Comment 6 Ahab Greybeard 2021-07-15 18:52:37 UTC
The small icon at the bottom left of the screenshot indicates that there is an active selection..
Even with an active selection, a vector layer should be created after you drag out a text box with the SVG Text Tool.
The screenshot shows a dashed rectangle. Are you sure that is a dragged out text box and not a rectangular selection?

There is no way I know of to disable the SVG Text Tool.

Do you have any previously made .kra files with text in them? If so, can you open them and edit the text by click-selecting the text and then pressing the Return key?
Comment 7 Chenille33 2021-07-18 09:53:19 UTC
(In reply to Ahab Greybeard from comment #6)
> The small icon at the bottom left of the screenshot indicates that there is
> an active selection..
Ok but this icon is always here.... So I've always a selection ? Even if I create a new image ??? So how can I don't select anything ?

> Even with an active selection, a vector layer should be created after you
> drag out a text box with the SVG Text Tool.
Yes but I cannot write into....

> The screenshot shows a dashed rectangle. Are you sure that is a dragged out
> text box and not a rectangular selection?
Yes I am sure... Unless "T" is now a selection and not Tooltext...

 
> There is no way I know of to disable the SVG Text Tool.
Me too... So why this doesn't work overnight ?

> Do you have any previously made .kra files with text in them? If so, can you
> open them and edit the text by click-selecting the text and then pressing
> the Return key?
Good idea... But I have no .kra file on this computer (I have lost them few weeks ago :( )
Comment 8 Ahab Greybeard 2021-07-18 10:11:18 UTC
Created attachment 140154 [details]
some text as an example

The icon at the bottom left is affected by the theme. I have 'krita neutral' and that icon goes from a definite 'inactive' to a definite 'active' when I make a selection, hence my assumption.
You have a darker theme where this difference is less obvious or not at all obvious. Hence the confusion.

I've attached an example .kra file with some text in it.
Please try that to see if you can edit the text.
Comment 9 Chenille33 2021-07-18 16:33:41 UTC
(In reply to Ahab Greybeard from comment #8)
> Created attachment 140154 [details]
> some text as an example
> 
> The icon at the bottom left is affected by the theme. I have 'krita neutral'
> and that icon goes from a definite 'inactive' to a definite 'active' when I
> make a selection, hence my assumption.
> You have a darker theme where this difference is less obvious or not at all
> obvious. Hence the confusion.
Ok I understand. But I don't known for you but clicking (right or left) on this left bottom icon don't change anything or open no window : this is right ?
If yes how can I (like you suggested) quit this mod ?


> I've attached an example .kra file with some text in it.
> Please try that to see if you can edit the text.
It's working if I edit your text in your file. Thanks for the test.
Comment 10 Ahab Greybeard 2021-07-18 19:43:40 UTC
Clicking on that little icon will only have an effect if you have an active selection on the canvas. I was explaining its purpose and why I initially assumed you had a selection, which you apparently don't.

So, in the test file I attached, can you create a new text item by dragging out a rectangle with the SVG Text Tool?
Can you do it in a new vector layer?
If you delete the vector layer(s) in that test file, does using the SVG Text Tool create a new vector layer for the Placeholder Text?
Comment 11 Chenille33 2021-07-19 08:17:27 UTC
(In reply to Ahab Greybeard from comment #10)
> So, in the test file I attached, can you create a new text item by dragging
> out a rectangle with the SVG Text Tool?
Yes I can, it's working.

> Can you do it in a new vector layer?
Yes, it's also working.

> If you delete the vector layer(s) in that test file, does using the SVG Text
> Tool create a new vector layer for the Placeholder Text?
Yes also.... Str
Comment 12 Ahab Greybeard 2021-07-19 09:51:45 UTC
What is the situation with your initial report regarding creating text in a new image?
If you still can't do this, please Save that new file and attach it to the report.
Comment 13 Chenille33 2021-07-19 13:47:03 UTC
Created attachment 140188 [details]
empty file where text not working

(In reply to Ahab Greybeard from comment #12)
> What is the situation with your initial report regarding creating text in a
> new image?
The same.

> If you still can't do this, please Save that new file and attach it to the
> report.
Sure.
Comment 14 Ahab Greybeard 2021-07-19 14:22:54 UTC
For some reason, the 'no text.kra' file has a document resolution of 9999 dpi.

This causes the SVG Text Tool to not function at all.
You need to use smaller and more realistic dpi values.

I've changed the title of the bug report to note this and am confirming the report as such.

This has been observed on the 4.4.5 and the July 18 5.0.0-prealpha (git c24193f) appimages.

At about 3000 dpi, a 200 x 200 image has a non-functioning Text Tool but a 2048 x 2048 image has a functioning Text Tool with a text box that goes a long way off-canvas.
No warning is given for a non-functioning text tool.
This is not likely to affect most people.
Comment 15 Chenille33 2021-07-19 15:16:46 UTC
(In reply to Ahab Greybeard from comment #14)
> For some reason, the 'no text.kra' file has a document resolution of 9999
> dpi.
> 
> This causes the SVG Text Tool to not function at all.
> You need to use smaller and more realistic dpi values.
> 
> I've changed the title of the bug report to note this and am confirming the
> report as such.
> 
> This has been observed on the 4.4.5 and the July 18 5.0.0-prealpha (git
> c24193f) appimages.
> 
> At about 3000 dpi, a 200 x 200 image has a non-functioning Text Tool but a
> 2048 x 2048 image has a functioning Text Tool with a text box that goes a
> long way off-canvas.
> No warning is given for a non-functioning text tool.
> This is not likely to affect most people.

Okay ! Thank you very much for responding me and help me to understand the problem. I hope you'll resolve this feature one day but actually I've no utility to set my dpi to 999.

Have a nice day.
Comment 16 Ahab Greybeard 2021-07-19 15:31:49 UTC
Created attachment 140192 [details]
ppi resolution adjustment

Please see the attached screenshot image. You can set image dpi/ppi to any value from 1 to 9999.  300 is a normal/usual type of value.
Comment 17 Dmitry Kazakov 2021-07-20 09:03:54 UTC
Hi, Ahab!

When I create a 9 pt text on a 3000dpi image the size of the text becomes 375 pixels. So it is quite obvious that the text doesn't fit the canvas and is drawn out of it. The only warning that Krita does is drawing the outline, which is hugely offset from the image. See this screenshot: https://i.imgur.com/wWplc2b.png

Are you think we should perform any action about this report? Or just close it?
Comment 18 Ahab Greybeard 2021-07-20 10:01:31 UTC
Hi Dmitry,

The 3000dpi for 200 x 200 vs 2048 x 2048 image size figures were to illustrate that it's a combination of dpi and image size that affect the text tool functionality.

As a further observation, the text tool not functioning depends on the intial size of the drawn text box.
e.g. 7000 dpi with a 512 x 512 image: If a 'small' text box is drawn on the canvas then it doesn't work. If a larger text box extending beyond the canvas is drawn then it does work and the 'Placeholder Text' object is very large and can be seen.

I think that these extreme dpi figures are unrealistic and it's unlikely to affect anyone but the possibility exists, as the initial bug report showed.

Maybe the dpi value limit should be less than 9999?

It won't affect me or bother me if this report is closed so please do what you think is best.
Comment 19 Bug Janitor Service 2021-08-04 04:33:56 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 20 Ahab Greybeard 2021-08-07 21:41:24 UTC
OK, I'll close it down :)