Bug 447810

Summary: Font is not rendered using a fixed grid causing alignment issues
Product: [Applications] konsole Reporter: xsrvmy
Component: fontAssignee: Konsole Developer <konsole-devel>
Status: REPORTED ---    
Severity: normal CC: ninjalj
Priority: NOR    
Version: 21.12.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Example of bug, note the misalignment

Description xsrvmy 2022-01-02 03:36:39 UTC
Created attachment 145035 [details]
Example of bug, note the misalignment

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
Unlike other terminals, Konsole doesn't appear to follow a strict grid. This means that weird behaviour happens if a fallback font is wider/narrower than the original.

STEPS TO REPRODUCE
1. Download victor mono font and set it as the Konsole font
2. Type in multiple lunate epsilons (ϵϵϵϵϵϵϵϵϵ)

OBSERVED RESULT
Assuming the fallback font has a more standard width, the cursor becomes misaligned with the text. Additionally, comparing with adjacent column 

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.23.4-1
KDE Frameworks Version: 5.89.0-1
Qt Version: 5.15.2
(Note: these are pacman package versions, I'm using sway at the moment)

ADDITIONAL INFORMATION
Comment 1 xsrvmy 2022-01-02 03:40:49 UTC
(In reply to xsrvmy from comment #0)
> Created attachment 145035 [details]
> Example of bug, note the misalignment
> 
> SUMMARY
> ***
> NOTE: If you are reporting a crash, please try to attach a backtrace with
> debug symbols.
> See
> https://community.kde.org/Guidelines_and_HOWTOs/Debugging/
> How_to_create_useful_crash_reports
> ***
> Unlike other terminals, Konsole doesn't appear to follow a strict grid. This
> means that weird behaviour happens if a fallback font is wider/narrower than
> the original.
> 
> STEPS TO REPRODUCE
> 1. Download victor mono font and set it as the Konsole font
> 2. Type in multiple lunate epsilons (ϵϵϵϵϵϵϵϵϵ)
> 
> OBSERVED RESULT
> Assuming the fallback font has a more standard width, the cursor becomes
> misaligned with the text. Additionally, comparing with adjacent column 
> 
> EXPECTED RESULT
> 
> 
> SOFTWARE/OS VERSIONS
> Linux/KDE Plasma: 
> (available in About System)
> KDE Plasma Version: 5.23.4-1
> KDE Frameworks Version: 5.89.0-1
> Qt Version: 5.15.2
> (Note: these are pacman package versions, I'm using sway at the moment)
> 
> ADDITIONAL INFORMATION

(Oops didn't finish my sentence)
Additionally, comparing with the adjacent row, the text is not grid aligned.
Comment 2 ninjalj 2022-01-03 01:20:35 UTC
Try disabling "Bi-Directional text rendering" in the Advanced page of profile options.  That would make Konsole follow the text grid for many non-ASCII characters.