Bug 411868

Summary: Setting font/size of highlighted text doesn't work if text under cursor has same font/size
Product: [Applications] krita Reporter: jamesnoeckel
Component: Tool/TextAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: ghevan, vitamorus.art
Priority: NOR    
Version First Reported In: 5.2.6   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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 :)