Details
-
Bug
-
Resolution: Out of scope
-
P1: Critical
-
None
-
5.8.0
-
None
-
ArchLinux, Qt 5.8, also tested with latest dev version as of this bug report
Description
For many fixed-width fonts, setting a QFont to bold, or changing it's weight appropriately, does not cause a bold font to be displayed.
This was originally detected in Konsole, but I've been able to reproduce it with a small example, attached.
Tested with fonts: Hack, Liberation Mono, Nimbus Mono, FreeMono, and Fira Mono. The only fixed-width font not affected seems to be DejaVu Sans Mono. Attached is an example output with Hack, and one with DejaVu Sans Mono. Serif and sans-serif fonts don't appear to be affected.
If
font.setStyleName("Bold")
is used, the correct bold font is chosen, so it looks to be an issue with the font matching.