Created attachment 161673 [details] Screen recording of the issue SUMMARY With the current master branch, Characters move when making a selection. Please see the attached screen recording. STEPS TO REPRODUCE Select some texts in Konsole. Versions: Operating System: Arch Linux KDE Plasma Version: 5.27.80 KDE Frameworks Version: 5.240.0 Qt Version: 6.6.0 Kernel Version: 6.5.3-arch1-1 (64-bit) Graphics Platform: Wayland Display info: 3840x2160, scale 160% (Also happens with other scale factors, such as 150% and 200%)
Technically, selection kinda "restores" position of the remaining characters (to the right) of a word being partially-selected. Seems like all text is being rendered with a negative letter spacing (instead of snapping letters to the grid); and selection boundaries force text layouting to reset to a correct X offset, but then letters proceed to drift until the end of a word. I'm using MesloLGS NF font, and it's broken for Konsole, as well as all other monospace fonts I have installed (Liberation Mono, DejaVu Sans Mono, Hack etc). On the other hand, Fira Code works without such issues. Also, I found in Appearance settings on the last tab Emoji font, and it was set to… simply "1pt" whatever that means. Seems like settings were not properly migrated, and what I was was a "default value" -1 that developers often use as an in-band signalling of an absence of value? Anyways, changing it to "Noto Color Emoji 11pt" did not fix the bug.
Some new data points. Apparently, switching to a different font is not required, and actually doesn't help. But changing font size does! …it can fix but also can make things worse. For example, MesloLGS NF 11pt is almost perfect, but not quite; same goes for Hack font. Fira code 10pt is exactly perfect, but 12pt causes shrinking, and 11pt suddenly causes overlap! So the bug can go in other direction too. There's something inherently wrong with how Konsole measures font metrics for the grid…
(In reply to ratijas from comment #1) > Hack etc). On the other hand, Fira Code works without such issues. Tried locally, that's only true if the size is 10. with 9, some text is overlapping, with >10, same issue as the OP
This issue no longer reproduces for me.
Probably fixed for you with https://invent.kde.org/utilities/konsole/-/merge_requests/911. Unfortunately it *caused* the issue for me; see Bug 476768.