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.
what about qt 3.3.1? They've fixed some of the problems in that version.
This problem still occurs in qt-3.3.1
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).
Problem persists with qt-3.3.3.
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
This seems to be http://bugs.kde.org/show_bug.cgi?id=92585 nothing we can do about it...