Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42790 - qt-3.3.0-r1 ignores font aliases in /etc/fonts/local.conf
Summary: qt-3.3.0-r1 ignores font aliases in /etc/fonts/local.conf
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-24 11:59 UTC by Chris Lord
Modified: 2005-01-12 10:34 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 Chris Lord 2004-02-24 11:59:57 UTC
I have aliases for various bad-looking fonts that I don't strictly want to remove in my /etc/fonts/local.conf:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts/local.conf file for local customizations -->
<fontconfig>
<!--
  Enable sub-pixel rendering-->
        <match target="font">
                <edit name="rgba" mode="assign"><const>rgb</const></edit>
        </match>
<!-- -->

<alias>
        <family>monospace</family>
        <prefer>
                <family>Bitstream Vera Sans Mono</family>
                <family>Luxi Mono</family>
                <family>Lucida Console</family>
                <family>Courier New</family>
                <family>Nimbus Mono</family>
        </prefer>
</alias>

<match target="pattern">
        <test qual="any" name="family">
                <string>helvetica</string>
        </test>
        <edit name="family" mode="assign">
                <string>sans</string>
        </edit>
</match>

<match target="pattern">
        <test qual="any" name="family">
                <string>times</string>
        </test>
        <edit name="family" mode="assign">
                <string>Times New Roman</string>
        </edit>
</match>

</fontconfig>

Using qt-3.2.3-r1, or in Gtk2 applications, this correctly aliases helvetica to Sans Serif and Times to Times New Roman. Using qt-3.3.0-r1, using these fonts shows their original fonts.
Setting font aliases in qtconfig does not resolve the issue (they are also ignored).

Reproducible: Always
Steps to Reproduce:
1. emerge qt-3.3.0-r1
2. Create a font alias for any font
3. Display that font in any Qt/KDE application

Actual Results:  
Original font is shown instead of the aliased font. 

Expected Results:  
Displayed the font that the alias points to. 

This happens in all KDE applications, as well as qtconfig (the only non-KDE Qt 
application I've tried) - To clarify, using qt-3.2.3-r1 or Gtk2, this error 
does not occur.
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2004-03-16 05:08:01 UTC
what about qt 3.3.1?  They've fixed some of the problems in that version.
Comment 2 G.K.MacGregor 2004-03-21 04:51:52 UTC
This problem still occurs in qt-3.3.1
Comment 3 Chris Lord 2004-05-13 05:28:05 UTC
Bug still exists in qt-3.3.2. I think it's a bug in qt from the switch to fontconfig since qt 3.3 (at least, that's what I read).
Comment 4 Nuno Mota 2004-08-18 07:33:14 UTC
Problem persists with qt-3.3.3.
Comment 5 Nuno Mota 2004-08-23 06:09:19 UTC
Using the original /etc/fonts/fonts.conf from fontconfig and with the following /etc/fonts/local.conf:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- /etc/fonts.conf file to configure system font access -->
<fontconfig>
        <match target="pattern">
                 <edit name="prefer_outline">
                         <bool>true</bool>
                 </edit>
        </match>
</fontconfig>

Helvetica should be replaced by Arial, wich actually happens for GTK and GTK2 based apps, however in qt it does'nt and Helvetica is always shown.

This problem happens since qt-3.3.0 and still happens in qt-3.3.3
Comment 6 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-12 10:34:09 UTC
This seems to be http://bugs.kde.org/show_bug.cgi?id=92585
nothing we can do about it...