You are not logged in.

#1 2022-03-05 08:17:25

ubone
Member
Registered: 2014-08-31
Posts: 47

Freetype GTK Fontconfig

There is 1. freetype compile options and variables, 2. .gtkrc-2.0, etc., 3. fonts.conf

The question is: which of those define how fonts look in leafpad (or another application)

.config/fontconfig/fonts.conf
-------------------------------------
 <match target="pattern" >
  <edit mode="assign" name="dpi" >
   <double>72</double>
  </edit>
 </match>

 <match target="font" >
  <edit mode="assign" name="rgba" >
   <const>rgb</const>
  </edit>
  <edit mode="assign" name="lcdfilter" >
   <const>lcdlight</const>
  </edit>
  <edit mode="assign" name="antialias" >
   <bool>false</bool>
  </edit>
  <edit mode="assign" name="autohint" >
   <bool>false</bool>
  </edit>
  <edit mode="assign" name="hinting" >
   <bool>true</bool>
  </edit>
  <edit mode="assign" name="hintstyle" >
   <const>hintslight</const>
  </edit>
 </match>

.gtkrc-2.0 (3.0, etc.)
--------------------------
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintslight"
gtk-xft-rgba="rgb"

$ gsettings get org.gnome.desktop.interface font-antialiasing
'grayscale'
$ gsettings get org.gnome.desktop.interface font-rgba-order
'rgb'
$ gsettings get org.gnome.desktop.interface font-name
'Cantarell 11'
$ gsettings get org.gnome.desktop.interface font-hinting
'slight'

Quick trial and error of fonts.conf showed me only the lcd filter made any difference.

Can someone shed some some light on this?

Last edited by ubone (2022-03-05 08:31:29)

Offline

Board footer

Powered by FluxBB