You are not logged in.

#1 2013-11-03 23:55:05

Diaz
Member
From: Lisbon, Portugal
Registered: 2008-04-16
Posts: 361
Website

Qt5 font rendering is different, yet another topic

Hi all, I've searched a little and found some bug reports and even another topic that describe some kind of problem
with font rendering in qt5 applications, but those bugs are marked as fixed ot the threads as solved.

It must be something stupid in my configuration or something, because I see nobody asking about it.

Using xfce4, I don't remember touching any other configurations, so it should be somewhat default.

The point is, qt5 applications render fonts not as defined, at least they appear different from qt4 apps and gtk, a little fuzzier if I can say that.

Relevant screenshot, showing qtdbusviewer qt4 (left) vs qt5 (right) and font configuration in xfce settings: http://imgur.com/aFvIPi8


Any pointers or help trying to understand what's going on is welcomed.

Thanks.

Last edited by Diaz (2013-11-03 23:56:19)


Owner of Asus 1215B :: User of Xfce :: Vasco Dias @blog

Offline

#2 2013-11-04 03:23:51

Pse
Member
Registered: 2008-03-15
Posts: 406

Re: Qt5 font rendering is different, yet another topic

Are you using the infinality patches? If so, can you check what version of freetype2 is getting picked by Qt5? Is it the one you have locally patched with the infinality patches? You can use ldd to see what libs get linked when running a Qt5 app.

Offline

#3 2013-11-04 06:41:07

Diaz
Member
From: Lisbon, Portugal
Registered: 2008-04-16
Posts: 361
Website

Re: Qt5 font rendering is different, yet another topic

I'm using default arch packages, nothing related with the infinality patches.

me, ~ » pacman -Q fontconfig 
fontconfig 2.11.0-1
me, ~ » pacman -Q qt5-base 
qt5-base 5.1.1-5
me, ~ » pacman -Q freetype2 
freetype2 2.5.0.1-2

Last edited by Diaz (2013-11-04 06:42:05)


Owner of Asus 1215B :: User of Xfce :: Vasco Dias @blog

Offline

#4 2013-11-17 01:13:45

Diaz
Member
From: Lisbon, Portugal
Registered: 2008-04-16
Posts: 361
Website

Re: Qt5 font rendering is different, yet another topic

Hey,

this is not some heavy problem for as I don't use any qt5 application yet, anyway, I've been looking around trying to find my conf files
and I think I found the problem:

It seems that if /etc/fonts/local.conf exists it makes those settings default and ignores any settings you set in your DE.

I have the file local.conf with the following content, mainly for programs like lightdm that work before DE changes fonts configuration:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 
 <!-- Hinting -->
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
 </match> 
 
 <!-- Hint Style -->
 <match target="font">
  <edit mode="assign" name="hintstyle">
   <const>hintslight</const>
  </edit>
 </match>
 
 <!-- Anti-aliasing -->
 <match target="font">
  <edit mode="assign" name="antialias">
   <bool>true</bool>
  </edit>
 </match>
</fontconfig>

So, it seems obvious now, looking back at the screenshot in the first post that the relevant difference is that in local.conf I have hintslight and in xfce configuration I have hintfull.

If I remove the local.conf file qt5 applications will get the correct font configuration.

Seems like a bug since qt4 works as expected ( ignoring the /etc/local.conf and using the de options ).


Owner of Asus 1215B :: User of Xfce :: Vasco Dias @blog

Offline

#5 2013-11-17 02:04:03

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 6,104

Re: Qt5 font rendering is different, yet another topic

They render differently for me and I don't have /etc/local.conf or, which I think you may have meant, /etc/fonts/local.conf.

SAk0Hv3l.png

SAk0Hv3.png

qt4 is on the left; qt5 on the right. I do have the infinality patches installed.

Last edited by cfr (2013-11-17 02:07:04)


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Corporation Wireless 8265 / 8275 | US keyboard with Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB