I have installed fontconfig-infinality on ubuntu 14.04 to solve qt4.8.7 Antialiasing/Font-Hinting issue. Using Ubuntu Font.

Made changes on /etc/profile.d/infinality-settings.sh and doing logout-login but changes are not getting reflected.

1. How to make qt to take font settings from infinality-settings.sh ?

2. Is there any other way to solve Antialiasing/Font-Hinting issue in qt4.8.7 ? I have tried with Qt5.2.1, the text is coming proper with that. But i have specific requirement to make it work in qt4.8.7.
I have tried making changes in /etc/fonts/font.conf but it seems not taking the changes from there as well.


Please help !