disable subpixel rendering

This commit is contained in:
Violet Spark 2021-12-09 19:48:22 -08:00
parent 235b04935a
commit 5832242879
4 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,13 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
<its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
</its:rules>
<description>Disable sub-pixel rendering</description>
<!-- Disable sub-pixel rendering -->
<match target="pattern">
<edit name="rgba" mode="assign"><const>none</const></edit>
</match>
</fontconfig>

View file

@ -0,0 +1,20 @@
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
<its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
</its:rules>
<description>Use none as default for LCD filter</description>
<match target="pattern">
<!--
This configuration is available on the major desktop environments.
We shouldn't overwrite it with "assign" unconditionally.
Most clients may picks up the first value only. so using "append"
may simply works to avoid it.
-->
<edit mode="assign" name="lcdfilter">
<const>none</const>
</edit>
</match>
</fontconfig>

View file

@ -0,0 +1,9 @@
This is stuff for disabling subpixel rendering of fonts which helps make text not look rainbowy when you arent running at the native resolution. you don't have to do it just go with whatever look you prefer.
the .conf files go in /etc/fonts/conf.d
make sure to delete any config files already there that mention anything about lcd filters or rgba or subpixel or any of that.
the Xresources stuff goes in ~/.Xresources or wherever and is for the programs that pay attention to that. you can change the hinting or antialias settings as you like tho the important thing is disabling lcdfilter and rgba
Also with a program like lxappearance you can disable it in the gtk settings too but idk if that actually matters but it might override the conf.d settings so might be good to do that too

View file

@ -0,0 +1,6 @@
! disable subpixel rendering
Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintslight
Xft.lcdfilter: none
Xft.rgba: none