Bug 399157 - Preview on the text tool: scale in the preview
Summary: Preview on the text tool: scale in the preview
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: Tool/Text (show other bugs)
Version: 4.1.3
Platform: Other Microsoft Windows
: NOR wishlist
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
: 411377 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-09-27 19:58 UTC by Tiar
Modified: 2020-12-11 14:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tiar 2018-09-27 19:58:10 UTC
SUMMARY
Text Tool preview make it hard to see text if the dpi is very big or very small.


STEPS TO REPRODUCE
1. Create a new document: something around A5 600dpi.
2. Go to Text Tool.
3. Create new text shape.
4. Go to Text Tool editor.
5. Make sure the Editor Mode is "Both" to see results better (it doesn't affect the results though).
6. Select "SVG Source" tab.
7. Click View -> Zoom In or Zoom Out a few times. It works, source is bigger or smaller according to what you clicked.
8. Select "Rich Text".
9. Click View -> Zoom In or Zoom Out a few times.


OBSERVED RESULT #1
Nothing happens


EXPECTED RESULT #1
Text in the preview is scaled accordingly.


Also:
10. Change the size of the text to 5.

OBSERVED RESULT #2
The size of the text on a canvas is reasonable big, but the size of the text preview in the Text Tool is unreadable.


EXPECTED RESULT #2
There should be a way to make the text bigger in the preview, but there isn't any for now.


Use case: files with big resolution (like 600 dpi). See this post: https://www.reddit.com/r/krita/comments/9jevh6/problem_with_the_text_tool/
Comment 1 Dmitry Kazakov 2018-10-03 13:43:20 UTC
Git commit 7bf022087a55b667835a6ad2fe2008765900bfd6 by Dmitry Kazakov.
Committed on 03/10/2018 at 13:43.
Pushed by dkazakov into branch 'master'.

Disable zoom-in/out actions when editing text in rich-text mode

Qt doesn't support zooming of the text that has fixed font hight
size using char-format. We should implement our own zooming for that.

M  +12   -2    plugins/tools/svgtexttool/SvgTextEditor.cpp
M  +3    -0    plugins/tools/svgtexttool/SvgTextEditor.h

https://commits.kde.org/krita/7bf022087a55b667835a6ad2fe2008765900bfd6
Comment 2 Dmitry Kazakov 2018-10-03 13:45:57 UTC
I have disabled the zoom actions for the rich-text editor. We need to implement our own zooming for the text for this case. Therefore I'll also downgrade this bug to a wish (though the wish is rather important)

WISHGROUP: Small Usability Fixes
Comment 3 Halla Rempt 2018-10-10 09:42:44 UTC
Git commit 596403bd3fe6bd695146a6e6aa6a2c4f16d3a0bf by Boudewijn Rempt, on behalf of Dmitry Kazakov.
Committed on 10/10/2018 at 07:36.
Pushed by rempt into branch 'krita/4.1'.

Disable zoom-in/out actions when editing text in rich-text mode

Qt doesn't support zooming of the text that has fixed font hight
size using char-format. We should implement our own zooming for that.
(cherry picked from commit 7bf022087a55b667835a6ad2fe2008765900bfd6)

M  +12   -2    plugins/tools/svgtexttool/SvgTextEditor.cpp
M  +3    -0    plugins/tools/svgtexttool/SvgTextEditor.h

https://commits.kde.org/krita/596403bd3fe6bd695146a6e6aa6a2c4f16d3a0bf
Comment 4 Tiar 2020-12-11 14:52:39 UTC
*** Bug 411377 has been marked as a duplicate of this bug. ***