lxqt / qterminal

A lightweight Qt-based terminal emulator
https://lxqt.github.io
GNU General Public License v2.0
586 stars 150 forks source link

Unable to change font to monospace #1139

Closed es20490446e closed 3 weeks ago

es20490446e commented 3 weeks ago

System

Steps

Try changing to monospace font.

Result

Font doesn't change, and instead the previous font is selected.

Info

Changing the font directly on qterminal.ini works.

stefonarch commented 3 weeks ago

Can't reproduce here. There is no dropdown terminal active while changing font in a normal window?

es20490446e commented 3 weeks ago

No dropdown terminal.

Removing the ini doesn't solve the problem either.

tsujan commented 3 weeks ago

instead the previous font is selected.

Isn't the previous font monospace? You can check that with fc-match monospace.

Do you have a well defined monospace? See https://github.com/lxqt/qterminal/wiki#how-to-set-my-preferred-font-for-monospace

es20490446e commented 3 weeks ago

If I create 0-mono.conf verbatim as in the wiki, it works.

But if I substitute it for Noto Sans Mono, it doesn't.

Also Noto Sans Mono doesn't appear listed as selectable monospace font.

Here's the noto package, in case you see something.


If I launch qterminal within a terminal, with monospace as font and noto as monospace, it says three times:

Using a variable-width font in the terminal. This may cause performance degradation and display/alignment errors.

But if dejavu is the font, it is only displayed once.

tsujan commented 3 weeks ago

But if I substitute it for Noto Sans Mono, it doesn't.

Because Qt doesn't see Noto as a monospace font. I refer you to your own comment and the links it leads to: https://github.com/lxqt/qterminal/issues/1088#issuecomment-1883896450.

es20490446e commented 3 weeks ago

Yeah, but not being able to select monospace is new... I guess due to Qt6.