Bug 545581 - [Qt4-UI] YaST Qt interface font changes after installation of GNOME desktop
Summary: [Qt4-UI] YaST Qt interface font changes after installation of GNOME desktop
Status: VERIFIED FIXED
Alias: None
Product: openSUSE 11.2
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: RC 2
Hardware: x86-64 SUSE Other
: P4 - Low : Minor with 1 vote (vote)
Target Milestone: ---
Assignee: Thomas Göttlicher
QA Contact: Jiri Srain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-08 22:33 UTC by Refilwe Seete
Modified: 2021-02-19 14:09 UTC (History)
4 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Image of a Qt YaST Module after GNOME has been installed (20.38 KB, image/png)
2009-10-08 22:34 UTC, Refilwe Seete
Details
font metadata (293.43 KB, image/png)
2010-04-16 11:31 UTC, Jakub Steiner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Refilwe Seete 2009-10-08 22:33:17 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux; en-GB) AppleWebKit/527+ (KHTML, like Gecko, Safari/419.3)  rekonq

If one adds the GNOME desktop to a KDE install the Qt interface will use the GNOME desktop's window title font for module titles (I believe it's Jakub Steiner's "Fifth Leg").

Reproducible: Always

Steps to Reproduce:
1. Install KDE desktop
2. Install GNOME desktop as well

Actual Results:  
Change in title font

Expected Results:  
No change in title fonts

This occurs in oS 11.2 Milestone 8.  It also occurs if one updates the system to Factory and then installs GNOME packages.
Comment 1 Refilwe Seete 2009-10-08 22:34:55 UTC
Created attachment 321741 [details]
Image of a Qt YaST Module after GNOME has been installed
Comment 2 Refilwe Seete 2009-10-22 19:19:35 UTC
Actually you do not need to install GNOME packages, installing the fifthleg font on a KDE install is enough to cause the font to change as shown in the attached image.
Comment 4 Forgotten User DHIkF8sU1p 2009-11-03 18:03:13 UTC
Hi

I got the same ugly fonts on two updated systems from 11.1 to 11.2. the third system with a new installation got clean fonts.

I have checked a lot of rc-files, yast, qt..., but with no result.
Comment 5 Refilwe Seete 2009-11-07 16:56:56 UTC
I can reproduce this on openSUSE 11.2 RC2.

Once the "fifth-leg" font is installed, the YaST2 Qt fonts change as per the attached picture.
Comment 6 Thomas Göttlicher 2009-11-13 13:38:40 UTC
I guess YQApplication::headingFont() returns the fifth-leg.
Comment 7 Gabriele Mohr 2010-04-15 10:53:55 UTC
I did some tests to set the font family explicitly with QFont. But whatever set for the family the fifth-leg font is taken.
Jakub, to which family does the fifth-leg-font belongs to?
Comment 8 Jakub Steiner 2010-04-16 11:31:54 UTC
Created attachment 354951 [details]
font metadata

The Family of the font is set to 'FifthLeg', the generic being Sans-Serif. And yea at that size without proper hinting, the text looks hideous.
Comment 9 Gabriele Mohr 2010-04-22 12:55:52 UTC
I don't know yet where the font is selected. 
YQApplication::headingFont() isn't used because the headline of the dialog is set by UI::WizardCommand(`SetDialogHeading( title ) in Wizard.ycp. 
To set QFont explicitly, e.g. to Times in YQWizard::layoutWorkArea() has no effect (except 'bold' is used).

--- YQWizard.cc (Revision 61604)
+++ YQWizard.cc (Arbeitskopie)
@@ -753,7 +753,11 @@
     _dialogHeading->setTextFormat( Qt::PlainText );
     _dialogHeading->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum ) ); // hor/vert
     _dialogHeading->setObjectName( "DialogHeading" );
-
+    QFont headingFont( "Times", 8, QFont::Bold );
+    dialogHeading->setFont( headingFont ); 
+    QFontInfo info = _dialogHeading->fontInfo();
+    yuiMilestone() << "Family used: " << info.family() << endl;
+    
     //
     // Client area (the part that belongs to the YCP application)
     //
@@ -954,7 +958,10 @@
     if ( _dialogHeading )
     {
        if ( ! headingText.empty() )
+       {
+           yuiMilestone() << "DialogHeading set: " << headingText << endl;
            _dialogHeading->setText( fromUTF8( headingText ) );
+       }
        else
            _dialogHeading->clear();
     }
Comment 10 Thomas Göttlicher 2011-02-02 15:51:40 UTC
fixed in yast2-theme 2.20.3