Bug 303356 - Font settings show inconsistent results in terminal
Summary: Font settings show inconsistent results in terminal
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: font (show other bugs)
Version: 2.9
Platform: Compiled Sources Linux
: NOR minor
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-11 10:40 UTC by Henrik Pauli
Modified: 2020-10-31 03:35 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Pauli 2012-07-11 10:40:33 UTC
There are various issues with the font selection.  The bold and the antialiasing setting for example, are not taken into account when you change the font in the font dialog.  Also, turning off antialiasing will turn off bold for normal characters (like, letters and such) while for example the box drawing characters in Midnight Commander will still reflect the boldness setting.  It's more or less easy to get back the usual intense = bold setting by switching around in the font's styles, but even that doesn't always fix it.  Changing font turns on antialiasing regardless of the setting (I guess as long as one uses antialiasing within KDE in the first place).

I think there's a severe confusion going on inside the code with these settings :)  Exiting and starting Konsole loads things up with the proper settings.

Reproducible: Always
Comment 1 Jekyll Wu 2012-07-11 11:27:28 UTC
I'm sorry, but this report is also hard to follow. I can't reproduce any problem here (If I understand it correctly)

Please open one report for each problem you have noticed.

Also, please use the more formal way to describe the problem: "Steps to reproduce", "Expected results", "Actual Results", etc. Also please separate fact from speculation. You can write down both of them, but please write them in different parts.

By the way, 2.9.999 means "built from git master". It is quite different from 2.9
Comment 2 Henrik Pauli 2012-07-11 12:13:06 UTC
Sorry. I thought it was clear enough :)  Here are some steps to reproduce.

It might depend on different fonts.  I use Liberation Mono and Envy Code R, both of them in the regular (non-bold, non-italic) style.  Font smoothing and intense colour emboldening are both set.

It seems that when I start Konsole, everything is OK, and changing the settings with the size slider and the checkboxes are also good.  But when I open the font dialog, the style doesn't seem to be set (defaults to the topmost style, in some case Bold Italic etc.).  So I set it to Normal/Regular/Book (whatever name the font uses for normal).  If I then change anything from the current font (font face, size) the intense colour emboldening will get messed up, latin characters (eg. directory names in MC, or my prompt which is also full of \e[1m codes) will NOT be bolded, but for example MC's box drawing characters in the menus will be.

Then I exit Konsole, start it again, and it starts to work again until I mess with the font style again.

I hope this is specific enough now (and also breaks on your machine and not just mine).
Comment 3 Jekyll Wu 2012-08-14 16:40:23 UTC
Sorry, forgot this report. Leave it open to see whether others can reproduce it.
Comment 4 Jekyll Wu 2012-10-28 07:43:56 UTC
Well, I still fail to reproduce the problem. But from the description, this looks like a problem of kdelibs. Actually I guess it is related with bug 305747. 

Could you re-check the probem using KDE SC 4.9.1+ ?
Comment 5 Henrik Pauli 2012-10-28 13:41:56 UTC
I'll try to look into it again when I get a fully 4.9.2 system running.  Right now, my system is a mixture of 4.9.0 and 4.9.1 so I'm not good for testing at the moment.
Comment 6 Henrik Pauli 2012-12-30 22:10:16 UTC
Okay, I'm back, sorry about that.

Finally got some time for myself and built a new Qt and KDE 4.9.95 — does that count?

In any case, I could make things happen again, with the same steps as written previously.  I guess the culprit might simply be DejaVu Mono's weird naming of font styles (with Book for Regular).
Comment 7 Jekyll Wu 2013-01-08 13:30:43 UTC
Reopen
Comment 8 Martin Sandsmark 2015-06-21 18:11:19 UTC
can you still reproduce it? I just tried it with this version of konsole:

Qt: 5.4.2
KDE Frameworks: 5.11.0
Konsole: 3.91.0

And I was unable to reproduce it following the steps you described.
Comment 9 Henrik Pauli 2015-06-22 12:10:09 UTC
I don't yet use KDE5, so I can't try on the newest Konsole...  I currently have Konsole 2.14.2
Comment 10 Justin Zobel 2020-10-29 06:39:08 UTC
(In reply to Henrik Pauli from comment #9)
> I don't yet use KDE5, so I can't try on the newest Konsole...  I currently
> have Konsole 2.14.2

Henrik did you ever get to retry this and confirm if the issue persists?
Comment 11 Henrik Pauli 2020-10-30 15:17:09 UTC
It doesn't appear to reproduce currently, things that are bold are always bold as long as the font has a bold variant (fake bolding is not applied, but that might be a FreeType setting or the lack of it, rather than Konsole behaving weirdly)
Comment 12 Justin Zobel 2020-10-31 00:36:06 UTC
(In reply to Henrik Pauli from comment #11)
> It doesn't appear to reproduce currently, things that are bold are always
> bold as long as the font has a bold variant (fake bolding is not applied,
> but that might be a FreeType setting or the lack of it, rather than Konsole
> behaving weirdly)

Thanks for the reply, are you happy for me to resolve this bug report?
Comment 13 Henrik Pauli 2020-10-31 03:16:42 UTC
Sure :)