Bug 447298 - Qt 4 uses Nimbus Sans L (Helvetica) instead of DejaVu Sans (Sans Serif)
Summary: Qt 4 uses Nimbus Sans L (Helvetica) instead of DejaVu Sans (Sans Serif)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: qt
Version: 9
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Kevin Kofler
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 444170 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-05-19 12:16 UTC by Kevin Kofler
Modified: 2009-01-13 22:55 UTC (History)
6 users (show)

Fixed In Version: 4.3.4-14.fc9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-06-10 08:36:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Kevin Kofler 2008-05-19 12:16:50 UTC
Description of problem:
For some reason, kdelibs 4 is defaulting to “Sans Serif” and interpreting that 
as “Nimbus Sans L”, whereas it would be expected to default to “Sans” which is 
a FontConfig alias for “DejaVu Sans”.

Version-Release number of selected component (if applicable):
kdelibs-4.0.3-7.fc9

How reproducible:
Always

Steps to Reproduce:
1. Boot the F9 final KDE live CD and check what fonts it's using.
  
Actual results:
It says “Sans Serif” and uses “Nimbus Sans L”.

Expected results:
It says “Sans” and uses the FontConfig "Sans" alias, which resolves to “DejaVu 
Sans”.

Additional info:
Workaround: In System Settings, pick Appearance, Fonts, Adjust all fonts..., 
check Font and set it to DejaVu Sans, check Font style and set it to Regular.

Comment 1 Than Ngo 2008-05-19 12:49:54 UTC
Kevin, it looks like a fontconfig setting and should be fixed in fontconfig.
Gnome/KDE should use the font alias instead hardcoding

Comment 2 Kevin Kofler 2008-05-19 12:56:19 UTC
It actually looks like Qt is not following the fontconfig settings.

Sans Serif and Sans should be equivalent and both aliases for DejaVu Sans, 
that's how fontconfig is configured.

Comment 3 Kevin Kofler 2008-05-19 12:56:58 UTC
(And "Sans Serif" appears to actually be the right thing to use, the bug is 
that it's resolving to the wrong actual font.)

Comment 4 Rex Dieter 2008-05-19 12:57:17 UTC
/etc/fonts/fonts.conf contains aliases for "sans" and "sans serif", and calls
"sans" deprecated.

fwiw, 
gnome's control center displays the default font: Sans
both qtconfig and systemsettings display only "Sans Serif", no "Sans".



Comment 5 Kevin Kofler 2008-05-19 14:21:47 UTC
Qt 4 hardcodes a substitution which replaces "sans serif" with "helvetica", I'm 
currently building a package which disables this nonsense.

Comment 6 Rex Dieter 2008-05-19 14:37:19 UTC
Using a local quick-n-dirty no-nonsense build of qt, I can confirm it fixes this
issue.

Comment 7 Than Ngo 2008-05-19 15:33:13 UTC
Gnome uses Sans for Sans Serif, Qt uses Sans serif. I did the patch for Qt in
the past to behave like in gnome. IMO it's wrong what was doing in Gnome, so i
removed the patch.

Comment 8 Kevin Kofler 2008-05-19 17:13:54 UTC
Should be fixed in qt(4)-4.3.4-14 and qt-4.4.0-4.fc10, F8 and F9 builds 
completed, F7 and F10 still running, I'll submit updates once everything is 
built.

Comment 9 Fedora Update System 2008-05-19 17:42:44 UTC
qt-4.3.4-14.fc9 has been submitted as an update for Fedora 9

Comment 10 Fedora Update System 2008-05-19 17:43:55 UTC
qt4-4.3.4-14.fc8 has been submitted as an update for Fedora 8

Comment 11 Fedora Update System 2008-05-19 17:46:02 UTC
qt4-4.3.4-14.fc7 has been submitted as an update for Fedora 7

Comment 12 Rex Dieter 2008-05-20 14:13:23 UTC
*** Bug 444170 has been marked as a duplicate of this bug. ***

Comment 13 Fedora Update System 2008-05-21 10:55:49 UTC
qt-4.3.4-14.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update qt'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-4163

Comment 14 Fedora Update System 2008-05-31 02:11:02 UTC
qt4-4.3.4-14.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2008-05-31 02:14:34 UTC
qt4-4.3.4-14.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2008-05-31 02:15:01 UTC
qt-4.3.4-14.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 17 Julian Sikorski 2008-06-10 08:33:50 UTC
Hmm, Serif looks OK now, but Sans Serif still picks Nimbus Sans L instead of
DejaVu LGC sans. Do I need to delete some config files for the change to take
effect?

Comment 18 Julian Sikorski 2008-06-10 08:36:22 UTC
OK, nevermind, there were some substitutions still lurking around in my
~/.config/Trolltech.conf.

Comment 19 Fedora Update System 2008-07-26 05:56:18 UTC
qt-4.3.4-14.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 20 Rex Dieter 2009-01-12 15:26:24 UTC
Woo, looks like
0263-fix-fontconfig-handling.diff
in latest qt-copy patches may finally address this upstream, so can try/test removing our local qt-x11-opensource-src-4.3.4-no-hardcoded-font-aliases.patch

I'll test it out.

Comment 21 Alexei Podtelezhnikov 2009-01-13 01:06:39 UTC
Are we making progress on bug 355271,
or http://bugs.kde.org/show_bug.cgi?id=57485 ?
That'd be cool and highly anticipated!

Comment 22 Kevin Kofler 2009-01-13 14:24:31 UTC
That's a completely separate issue, please comment in bug 355271, not here. (And no, AFAIK it's not being worked on.)

Comment 23 Rex Dieter 2009-01-13 15:01:16 UTC
qt-copy patch tests out good here, local hack/patch removed in qt-4.4.3-10

Comment 24 Alexei Podtelezhnikov 2009-01-13 22:40:33 UTC
Re: Comment #22
I am sorry I pointed out that this bug that you reported was likely related to the bug I reported a year earlier. Just like in my bug 355271, you first didn't realize that the problem is because Qt essentially ignores fontconfig. And this is exactly the same conclusion I reached in te earlier bug. 

So I beg to differ. The root cause of the problems is the same!


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