You are not logged in.
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)
Offline
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
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)
Offline
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 ).
Offline
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.
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)
CLI Paste | How To Ask Questions
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 Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline