Bug 411868 - Setting font/size of highlighted text doesn't work if text under cursor has same font/size
Summary: Setting font/size of highlighted text doesn't work if text under cursor has s...
Status: CONFIRMED
Alias: None
Product: krita
Classification: Applications
Component: Tool/Text (other bugs)
Version First Reported In: 5.2.6
Platform: unspecified All
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-12 16:55 UTC by jamesnoeckel
Modified: 2024-12-12 18:55 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jamesnoeckel 2019-09-12 16:55:22 UTC
SUMMARY
Krita's text editor seems to assume that whatever text is under the cursor represents the "current" settings and will ignore any attempted changes to settings that match the text under the cursor, even if highlighted text includes text with different fonts and sizes. Note that this does not happen with color.

STEPS TO REPRODUCE
1. Make new text with the text tool
2. In the text box, make the right half of the text a different size/font
3. Highlight text containing characters of both sizes/fonts, so that the cursor ends up on the right half
4. Attempt to change all the text to the size/font of text on the right half
(alternatively, highlight right to left and attempt to change back to the original size/font)

OBSERVED RESULT
Size/font in the dropdown menu is already on the setting of whatever text is under the text cursor (regardless of highlighted text), and re-selecting it has no effect on highlighted text.

EXPECTED RESULT
In any other text editor, the contents of the dropdown become blank if highlighted text includes different values for that setting, and any selection made from the dropdown applies it to all of the highlighted text.

SOFTWARE/OS VERSIONS
Windows: 10
Comment 1 jamesnoeckel 2019-09-12 19:24:23 UTC
this happens on both Windows and Linux
Comment 2 vanyossi 2019-09-12 21:34:07 UTC
I can confirm this bug
Comment 3 Vitamorus 2024-12-12 18:55:43 UTC
Re-confirming this bug for 5.2.6.

Hopefully this won't be an issue after Wolthera's rework of the text tool :)