Bug 956357

Summary: Inconsistent fonts between Qt4 and GTK/Qt5 apps when using Roboto
Product: [openSUSE] openSUSE Tumbleweed Reporter: Ronan Chagas <ronisbr>
Component: OtherAssignee: Dirk Mueller <dmueller>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: fcrozat, forgotten_DV81ZEWZkN, sb56637
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: qtconfig showing that Roboto Black is selected.
kwrite with the correct font (Roboto Regular)
digikam with the wrong font (Roboto Black)

Description Ronan Chagas 2015-11-23 21:01:50 UTC
Created attachment 657030 [details]
qtconfig showing that Roboto Black is selected.

Hi!

I'm using openSUSE Tumbleweed with MATE 1.12 desktop and Qt theme is set to GTK+.

After last snapshot, I switched the default font to Google's Roboto using `mate-appearance-properties`. I also changed it in KDE `systemsettings5`. However, I noticed that all Qt4 apps was showing a darker font. Then, when I tried to configure using `qtconfig`, it shows that the selected font was Roboto Black instead of Roboto Regular. I tried many things, but as far as GTK+ theme is selected, I could not change the font in `qtconfig` to Roboto Regular, which seems to be causing the problem.

I'm uploading three figures:

1) The qtconfig showing that Roboto Black font is selected;
2) A screenshot of kwrite, showing the correct font (Roboto Regular);
3) A screenshot of digikam, showing the wrong font (Roboto Black).

Here is additional information about my system:

$cat /etc/os-release 
NAME=openSUSE
VERSION="Tumbleweed"
VERSION_ID="20151118"
PRETTY_NAME="openSUSE Tumbleweed (20151118) (x86_64)"
ID=opensuse
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:opensuse:20151118"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://opensuse.org/"
ID_LIKE="suse"
Comment 1 Ronan Chagas 2015-11-23 21:02:28 UTC
Created attachment 657031 [details]
kwrite with the correct font (Roboto Regular)
Comment 2 Ronan Chagas 2015-11-23 21:03:04 UTC
Created attachment 657032 [details]
digikam with the wrong font (Roboto Black)
Comment 4 Forgotten User DV81ZEWZkN 2015-11-24 18:29:44 UTC
*** Bug 956309 has been marked as a duplicate of this bug. ***
Comment 5 Ronan Chagas 2015-12-13 23:53:01 UTC
In the mean time, I fixed the problems by removing the Roboto-Medium* fonts. On other words, by deleting/moving the following files:

/usr/share/fonts/truetype/Roboto-MediumItalic.ttf
/usr/share/fonts/truetype/Roboto-Medium.ttf

and running fc-cache -vf
Comment 6 Dirk Mueller 2017-09-05 07:10:00 UTC
fix was submitted:

https://build.opensuse.org/request/show/520824
Comment 9 Swamp Workflow Management 2018-07-06 16:08:35 UTC
SUSE-SU-2018:1902-1: An update that solves one vulnerability and has four fixes is now available.

Category: security (moderate)
Bug References: 1039291,1042657,956357,964458,982826
CVE References: CVE-2016-10040
Sources used:
SUSE Linux Enterprise Workstation Extension 12-SP3 (src):    libqt4-4.8.7-8.6.1, libqt4-sql-plugins-4.8.7-8.6.1, qt4-qtscript-0.2.0-11.2.4
SUSE Linux Enterprise Software Development Kit 12-SP3 (src):    libQtWebKit4-4.8.7+2.3.4-4.5.1, libqca2-2.0.3-17.2.1, libqt4-4.8.7-8.6.1, libqt4-devel-doc-4.8.7-8.6.4, libqt4-sql-plugins-4.8.7-8.6.1
SUSE Linux Enterprise Server 12-SP3 (src):    libQtWebKit4-4.8.7+2.3.4-4.5.1, libqca2-2.0.3-17.2.1, libqt4-4.8.7-8.6.1, libqt4-devel-doc-4.8.7-8.6.4, libqt4-sql-plugins-4.8.7-8.6.1
SUSE Linux Enterprise Desktop 12-SP3 (src):    libQtWebKit4-4.8.7+2.3.4-4.5.1, libqca2-2.0.3-17.2.1, libqt4-4.8.7-8.6.1, libqt4-sql-plugins-4.8.7-8.6.1, qt4-qtscript-0.2.0-11.2.4