Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234255 - qtconfig in x11-libs/qt:4 could not set font substitution rules of Sans Serif.
Summary: qtconfig in x11-libs/qt:4 could not set font substitution rules of Sans Serif.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-08 16:32 UTC by Hongjiu Zhang
Modified: 2009-11-09 01:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hongjiu Zhang 2008-08-08 16:32:53 UTC
After x11-libs/qt:4 installed, the sans serif font was forced to be replaced with helvetica. Although we can "edit" the rules in qtconfig, but the edit about this font won't save. It should be changed freely.

https://bugzilla.redhat.com/show_bug.cgi?id=447298 Fedora gives out the solution:

diff -ur qt-x11-opensource-src-4.3.4/src/gui/text/qfont.cpp qt-x11-opensource-src-4.3.4-no-hardcoded-font-aliases/src/gui/text/qfont.cpp
--- qt-x11-opensource-src-4.3.4/src/gui/text/qfont.cpp	2008-02-19 18:47:20.000000000 +0100
+++ qt-x11-opensource-src-4.3.4-no-hardcoded-font-aliases/src/gui/text/qfont.cpp	2008-05-19 15:36:46.000000000 +0200
@@ -1433,7 +1433,7 @@
     // default substitutions
     static const char *initTbl[] = {
 
-#if defined(Q_WS_X11)
+#if 0
         "arial",        "helvetica",
         "times new roman", "times",
         "courier new",  "courier",
Comment 1 Andrew Novikov 2008-10-06 11:43:53 UTC
I am also experiencing this problem since upgrading from fontconfig 2.4.2.
Comment 2 Alex Alexander (RETIRED) gentoo-dev 2009-11-09 01:44:43 UTC
this doesn't seem valid anymore