Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1330150 - When using the lxqt desktop, konsole defaults to the proportional font "DejaVu Sans"
Summary: When using the lxqt desktop, konsole defaults to the proportional font "DejaV...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: lxqt-qtplugin
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-25 13:04 UTC by Mike FABIAN
Modified: 2016-05-07 11:46 UTC (History)
8 users (show)

Fixed In Version: lxqt-qtplugin-0.10.0-4.fc24
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-07 11:46:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
wrong-default-font-for-konsole-in-lxqt.png (156.55 KB, image/png)
2016-04-25 13:06 UTC, Mike FABIAN
no flags Details

Description Mike FABIAN 2016-04-25 13:04:31 UTC
I installed Fedora-Workstation-netinst-x86_64-24_Alpha-1.7.iso and added
the other desktops after the installation using "dnf groupinstall ...".

When starting konsole in the lxqt desktop, konsole defaults to
the proportional font "DejaVu Sans" which makes konsole unusable.

Of course the font can be changed in the setup of konsole to fix that, but
it is not nice that the default is bad.

When using the kde desktop, konsole uses "monospace" by default, which works.

Comment 1 Mike FABIAN 2016-04-25 13:06:14 UTC
Created attachment 1150465 [details]
wrong-default-font-for-konsole-in-lxqt.png

Comment 2 Raphael Groner 2016-04-25 13:39:08 UTC
You should not use Workstation image to install LXQt, it's primary goal is to install default desktop (GNOME). LXQt is no official spin currently and partly maintained as individual packages and in comps group. What happens if you install from Server netinstall image?

# dnf group install lxqt

I'm not even sure if we'd already some default (fonts) configuration at all.

Comment 3 Mike FABIAN 2016-04-28 11:27:17 UTC
The same problem occurs when using the Hawaii desktop, konsole
defaults to the proportional font "Dejavu Sans".

Comment 4 Raphael Groner 2016-04-28 12:08:11 UTC
LXQt and Hawaii are two separate individual desktops and have nothing to do with each other. Your issue seems obviously not to be related to the common base Qt5, I guess more towards a configuration issue. Please report anything related about Hawaii in a new bug.

What happens if you use QTerminal? QTerminal is considered to be more common for LXQt environments. No idea for Hawaii.

Maybe we can ask the maintainer of konsole why it uses some individual font on other desktops. Reassigning.

Comment 5 Rex Dieter 2016-04-28 13:10:55 UTC
Konsole's code includes this for selecting default/fallback font:

    setProperty(Font, QFontDatabase::systemFont(QFontDatabase::FixedFont));

so, a little surprising that could ever result in selecting Dejavu Sans

Comment 6 Mike FABIAN 2016-04-28 13:36:50 UTC
(In reply to Rex Dieter from comment #5)
> Konsole's code includes this for selecting default/fallback font:
> 
>     setProperty(Font, QFontDatabase::systemFont(QFontDatabase::FixedFont));
> 
> so, a little surprising that could ever result in selecting Dejavu Sans

Yes, it works when using the KDE desktop, but not when using LXQt or Hawaii.

Comment 7 Mike FABIAN 2016-04-28 13:38:10 UTC
(In reply to Raphael Groner from comment #4)

> What happens if you use QTerminal? QTerminal is considered to be more common
> for LXQt environments. No idea for Hawaii.

qterminal-qt5 works.

Comment 8 Mike FABIAN 2016-04-28 13:41:26 UTC
(In reply to Raphael Groner from comment #4)

> What happens if you use QTerminal? QTerminal is considered to be more common
> for LXQt environments. No idea for Hawaii.

konsole seems to be the default terminal for Hawaii,it starts when clicking
on the terminal icon at the bottom of the Hawaii desktop.

Comment 9 Rex Dieter 2016-04-28 13:45:43 UTC
Fwiw, it appears that qterminal hard-codes a Monospace default (rather than relying on Qt to query a system default like konsole does)

qterminal-0.6.0/src/config.h:#define DEFAULT_FONT                   "Monospace"

I suppose we consider doing the same in konsole at least until we can figure out why QFontDatabase::systemFont(QFontDatabase::FixedFont) fails

Comment 10 Rex Dieter 2016-04-28 14:17:37 UTC
Curious, do either lxqt or hawaii provide Qt5 platform plugins?  It's possible they may be setting an invalid font.

repoquery seems to show that they do, provided by lxqt-qtplugin and hawaii-workspace packages respectively.

After installing both of those packages, and manually specifying use of these platformthemes (though I'm currently running kde/plasma), I can now reproduce the problem:

QT_QPA_PLATFORMTHEME=hawaii konsole   => fail

QT_QPA_PLATFORMTHEME=lxqt konsole     => fail

QT_QPA_PLATFORMTHEME=kde konsole  => happy


Re-assigning to lxqt-qtplugin (since this bug started wrt use on lxqt, probably good idea to poke hawaii-workspace similarly)

Comment 11 Rex Dieter 2016-04-28 14:36:38 UTC
Perusing lxqt-qtplugin code, it appears to want to read fixedFont key from:
/etc/xdg/lxqt/lxqt.conf

    // FixedFont
    fixedFontStr_ = settings.value(QLatin1String("fixedFont")).toString();
    if(!fixedFontStr_.isEmpty()) {
        fixedFont_.fromString(fixedFontStr_);
    }

else, doesn't set a fixedFont at all?

Anyway, looks like a /etc/xdg/lxqt/lxqt.conf exists in lxqt-common pkg.

current contents:
[General]
theme=Fedora
icon_theme=oxygen
single_click_activate=false
tool_button_style=ToolButtonTextBesideIcon

[Qt]
font="Sans,10,-1,5,50,0,0,0,0,0"
doubleClickInterval=400
style=Oxygen
wheelScrollLines=3

[Mouse]
cursor_theme=Oxygen_White


So 2 issues:
1.  lack of fixedFont key, adding
fixedFont="Monospace,10,-1,5,50,0,0,0,0,0"
to /etc/xdg/lxqt/lxqt.conf in [Qt] section fixes test-case for me.

2    lxqt-plugin lacks a dependency on lxqt-common (owner of lxqt.conf)

Comment 12 Pier Luigi Fiorini 2016-04-28 14:38:34 UTC
Each Qt desktop usually have a platform theme plugin, Hawaii sure does and as far as I remember Plasma and LxQt do too.

As a matter of fact a setting for fixed fonts might be missing from Hawaii.
I'll take a deeper look.

Comment 13 Rex Dieter 2016-04-28 14:44:11 UTC
bug #1331455 filed for hawaii-workspace

Comment 14 Rex Dieter 2016-04-28 16:21:28 UTC
I can implement the necessary changes

Comment 15 Fedora Update System 2016-04-28 16:40:41 UTC
lxqt-common-0.10.0-10.fc24 lxqt-qtplugin-0.10.0-4.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-cef689f239

Comment 16 Raphael Groner 2016-04-28 18:35:06 UTC
Please note that an user may use rpmconf to fully apply the new configuration entry into its current (custom) file, because it's marked %config(noreplace). Also, a relogin may be necessary.

Comment 17 Fedora Update System 2016-04-29 17:22:20 UTC
lxqt-common-0.10.0-10.fc24, lxqt-qtplugin-0.10.0-4.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-cef689f239

Comment 18 Fedora Update System 2016-05-07 11:46:31 UTC
lxqt-common-0.10.0-10.fc24, lxqt-qtplugin-0.10.0-4.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.