After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 745758 - fontconfig settings not applied for freetype-infinality-ultimate when run from .desktop file
fontconfig settings not applied for freetype-infinality-ultimate when run fro...
Status: RESOLVED NOTGNOME
Product: gtk+
Classification: Platform
Component: .General
3.15.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-03-06 17:38 UTC by Asif Ali Rizvan
Modified: 2015-03-07 15:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
nautilus run from dash (.desktop file) - no font smoothening please observe the sidebar and popup menu text (36.59 KB, image/png)
2015-03-06 17:38 UTC, Asif Ali Rizvan
Details
nautilus run from gnome-terminal ($ nautilus) - *Proper* font smoothening please observe the sidebar and popup menu text (37.78 KB, image/png)
2015-03-06 17:40 UTC, Asif Ali Rizvan
Details
file ope dialog - gedit (run from .desktop file) - text not smooth (58.37 KB, image/png)
2015-03-06 17:42 UTC, Asif Ali Rizvan
Details
file open dialog - gedit (run from gnome-terminal) - text *smooth* as expected (60.06 KB, image/png)
2015-03-06 17:43 UTC, Asif Ali Rizvan
Details

Description Asif Ali Rizvan 2015-03-06 17:38:54 UTC
Created attachment 298743 [details]
nautilus run from dash (.desktop file) - no font smoothening please observe the sidebar and popup menu text

The text looks better with infinality patches on LCD/LED monitor. I installed infinality ultimate to smoothen the font rendering. it works on qt4 apps, firefox, libreoffice, but not on gtk3, *unless* we run the gtk3 app from gnome-terminal. If we run the program from dash or applications (superkey), the app has bad font rendering, but the same app when run from gnome-terminal shows proper smooth rendering as expected. I guess this is somehow related to wayland...

I even compiled and installed cairo-freeworld package to no avail.

Please see attachments, for visual confirmation.

How to reproduce:
1. We need to install infinality ultimate (to test obviously say in gnome-boxes with installed fedora 21)

--- 
su
cd /etc/yum.repos.d/
wget http://download.opensuse.org/repositories/home:fastrizwaan/Fedora_21/home:fastrizwaan.repo
yum install freetype-infinality-ultimate fontconfig-infinality-ultimate

---

2. reboot the f21 after installation of the above 2 (fontconfig and freetype)

3. after login, run nautilus/gedit from dash or overview apps, notice the lack of font smoothening,

(after closing nautilus please do a 'killall nautilus' to flush it from memory)

4. open gnome-terminal, and run 'nautilus' or 'gedit', we can see that text is smooth and looks as expected.


Expected Behavior:
1. The text should be smooth like it runs from gnome-terminal

I suspect that gtk3 apps not reading the 'infinality-settings' environment varialbes (bash script) when launched from .desktop file, but loads them when run from terminal emulator.

Thanks.

if this bug is not related to gtk3, kindly assign to the related one, as I can't find which component font smoothening applies to.
Comment 1 Asif Ali Rizvan 2015-03-06 17:40:18 UTC
Created attachment 298744 [details]
nautilus run from gnome-terminal ($ nautilus) - *Proper* font smoothening please observe the sidebar and popup menu text
Comment 2 Asif Ali Rizvan 2015-03-06 17:42:25 UTC
Created attachment 298745 [details]
file ope dialog - gedit (run from .desktop file) - text not smooth
Comment 3 Asif Ali Rizvan 2015-03-06 17:43:49 UTC
Created attachment 298746 [details]
file open dialog - gedit (run from gnome-terminal) - text *smooth* as expected
Comment 4 Asif Ali Rizvan 2015-03-06 17:55:30 UTC
This bug affects archlinux, opensuse 13.2, fedora 21/22. Better looking text rendering is important for reading.

http://fedora-apps.blogspot.in/2015/03/install-freetype-infinality-ultimate-in.html
https://github.com/bohoomil/fontconfig-ultimate/issues/54

Thanks.
Comment 5 Matthias Clasen 2015-03-07 15:39:22 UTC
GTK+ uses fontconfig properly. If the 'pimp my fonts' package you installed is really 'running scripts' as you say, it sounds more like a hack than a proper font configuration change.

In any case, there is nothing to fix on our side here.