Summary: | [Feature request] Add an option to disable the embedded "drawLineChar" mechanism | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Yi Yang <ahyangyi> |
Component: | font | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | martin.sandsmark |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/konsole/e33355a4d0f57a27ca50270d74b23486fd3ddf2c | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | Screenshot showcasing worst-case scenario for the built-in line drawing mechanism |
Description
Yi Yang
2016-07-02 06:34:13 UTC
This should be fairly easy to implement: In TerminalDisplay.cpp, method TerminalDisplay::drawCharacters, there is a if-clause calling isLineCharString(text) to decide whether to draw something with built-in line drawing mechanism or to draw it with the chosen font. Probably one could add an option that forces one to draw with the chosen font there. Created attachment 99796 [details]
Screenshot showcasing worst-case scenario for the built-in line drawing mechanism
The command was
echo -e '╫\033[01m╫'
and as you can see, one can barely see it's two lines, and it's impossible to tell it in bold style.
https://bugs.kde.org/show_bug.cgi?id=61637 is the original bug where the feature came from, Maksim noted that it didn't scale properly. It's amazing to see some code written 11 years ago which fixes a bug reported 13 years ago can still work. However, as I have argued, the available fonts have changed, and the available screen resolutions have changed. Maybe it's time to revisit this patch. I have code that does this - I'll see if I can get it in the next few days for the next release. Git commit a4de3feb16df7f18559587ebf78f115d88acc022 by Kurt Hindenburg. Committed on 19/07/2016 at 01:34. Pushed by hindenburg into branch 'master'. Add option to use the selected font's line characters Konsole has builtin code to manually write out line characters. There are certain reasons why this might not be desired. This adds a profile option to use the fonts line characters. The default is as-is today using the builtin code. M +9 -0 src/EditProfileDialog.cpp M +1 -0 src/EditProfileDialog.h M +10 -0 src/EditProfileDialog.ui M +2 -0 src/Profile.cpp M +8 -0 src/Profile.h M +2 -1 src/TerminalDisplay.cpp M +16 -0 src/TerminalDisplay.h M +1 -0 src/ViewManager.cpp http://commits.kde.org/konsole/a4de3feb16df7f18559587ebf78f115d88acc022 Git commit e33355a4d0f57a27ca50270d74b23486fd3ddf2c by Kurt Hindenburg. Committed on 19/07/2016 at 01:37. Pushed by hindenburg into branch 'Applications/16.08'. Add option to use the selected font's line characters Konsole has builtin code to manually write out line characters. There are certain reasons why this might not be desired. This adds a profile option to use the fonts line characters. The default is as-is today using the builtin code. (cherry picked from commit a4de3feb16df7f18559587ebf78f115d88acc022) M +9 -0 src/EditProfileDialog.cpp M +1 -0 src/EditProfileDialog.h M +10 -0 src/EditProfileDialog.ui M +2 -0 src/Profile.cpp M +8 -0 src/Profile.h M +2 -1 src/TerminalDisplay.cpp M +16 -0 src/TerminalDisplay.h M +1 -0 src/ViewManager.cpp http://commits.kde.org/konsole/e33355a4d0f57a27ca50270d74b23486fd3ddf2c |