You are not logged in.

#1 2021-07-06 20:06:50

TaruMM2
Member
Registered: 2021-07-06
Posts: 3

Disabling Font Antialiasing on QT

How do I globally disable font antialiasing for all QT applications? I have Xft.antialias: 0 set in my .Xresources file, and it disables antialiasing on all text except for text on QT applications, it works properly for applications using other UI toolkits. I also tried disabling it with fontconfig, but it did not change anything for QT applications. I am using the gtk2 theme for qt through qt5ct.

Offline

#2 2021-07-06 20:38:23

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,523

Offline

#3 2021-07-06 20:53:25

TaruMM2
Member
Registered: 2021-07-06
Posts: 3

Re: Disabling Font Antialiasing on QT

As I said, I tried using a fontconfig as well but it didn't change QT.

Offline

#4 2021-07-06 20:57:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,523

Re: Disabling Font Antialiasing on QT

Tried "how"?
Did you see the sub-link to https://wiki.archlinux.org/title/Font_c … ng_hinting ?

Offline

#5 2021-07-06 21:18:25

TaruMM2
Member
Registered: 2021-07-06
Posts: 3

Re: Disabling Font Antialiasing on QT

seth wrote:

Tried "how"?
Did you see the sub-link to https://wiki.archlinux.org/title/Font_c … ng_hinting ?

My local.conf file in /etc/fonts/local.conf is as follows:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
  <match target="font">
    <edit name="antialias" mode="assign">
      <bool>false</bool>
    </edit>
  </match>
<match target="font">
  <edit mode="assign" name="hinting">
   <bool>false</bool>
  </edit>
</match>
</fontconfig>

Offline

#6 2021-07-06 21:29:41

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,523

Re: Disabling Font Antialiasing on QT

The "my DE ate my fontconfig" mentioned before aside, iirc Qt has it's own fontconfig implementation which might ignore local.conf - try to use eg. ~/.config/fontconfig/conf.d/99-yesalias.conf

Offline

Board footer

Powered by FluxBB