[konsole] [Bug 378523] New: Bold fonts not displaying when proper settings checked

Mike Lui bugzilla_noreply at kde.org
Fri Apr 7 02:45:01 UTC 2017


https://bugs.kde.org/show_bug.cgi?id=378523

            Bug ID: 378523
           Summary: Bold fonts not displaying when proper settings checked
           Product: konsole
           Version: 16.12.3
          Platform: Archlinux Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: font
          Assignee: konsole-devel at kde.org
          Reporter: mike.d.lui at gmail.com
  Target Milestone: ---

font: Hack
all 3 bold, italic, and normal variants exist in /usr/share/fonts/TTF, and
fc-match correctly shows them all.

Environment: I select "Draw intense colors in bold font", and select Hack
Regular

Expected Behavior:
$ echo -e "\033[1mThis is a BOLD line\033[0m"
will display in bold

Actual Behavior:
text changes color, but is not in bold.

This is separate from this issue:
https://bbs.archlinux.org/viewtopic.php?id=192853
as I've exited and restarted konsole.

If I choose the bold variant of the font, the style gets set correctly and
there no problems.

I toyed around with the source, and fixed my issue by adding:
if(font.bold())
  font.setStyleName("Bold");
to this block:
https://github.com/KDE/konsole/blob/Applications/17.04/src/TerminalDisplay.cpp#L826

However, I'm not sure if that is a valid fix. When I print out the weight and
bold values there, they are set correctly, so might also be a Qt issue with
font matching.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list