Bug 447810 - Font is not rendered using a fixed grid causing alignment issues
Summary: Font is not rendered using a fixed grid causing alignment issues
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: font (show other bugs)
Version: 21.12.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-02 03:36 UTC by xsrvmy
Modified: 2022-01-03 01:20 UTC (History)
1 user (show)

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


Attachments
Example of bug, note the misalignment (3.55 KB, image/png)
2022-01-02 03:36 UTC, xsrvmy
Details

Note You need to log in before you can comment on or make changes to this bug.
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.