On Mon, 19 Sep 2016 19:29:19 +0100
Ken Moffat <zarniwh...@ntlworld.com> wrote:

> The internet has a plethora of suggestions for tweaking what happens
> in fontconfig.


The quality of on-screen font rendering under Linux has long irked me.
It seems that after I finally get things the way I like, some upgrade
to Freetype or GTK comes along that breaks something. There have been
some really bad releases of Freetype in the past, IMHO.

Anyway, below is my /etc/fonts/local.conf receipe (I'm running Freetype
2.6.3 with Fontconfig-2.11.1) that I like best on my system (so far).
Note that I am unusual in that I use the venerable Type 1 Nimbus fonts
for default on screen rendering. Try my font config, rhubarb pie guy,
and let us know if you like it or if it helps at all. Be sure and
adjust the paths for your case as needed.

  Cheers,

  Mike Shell


------------
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>


<dir>/usr/share/fonts</dir>
<dir>/usr/X11/share/fonts/X11/Type1</dir>
<!-- Needed if there are not links to in /usr/share/fonts -->
<!-- <dir>/usr/X11/share/fonts/X11/OTF</dir>
<dir>/usr/X11/share/fonts/X11/TTF</dir> -->

<!-- Reject bitmap fonts -->
<selectfont>
  <rejectfont>
   <pattern>
     <patelt name="scalable">
     <bool>false</bool>
     </patelt>
   </pattern>
  </rejectfont>
 </selectfont>

<!-- disable embedded bitmap for all fonts -->
<match target="font">
    <edit name="embeddedbitmap" mode="assign">
      <bool>false</bool>
    </edit>
  </match>


<!-- Helvetica is a non true type font, and will look bad. This
replaces it with whatever is the default sans-serif font -->

<match target="pattern">
<test name="family" qual="any" >
<string>Helvetica</string>
</test>
<edit mode="assign" name="family" >
<string>sans-serif</string>
</edit>
</match>


<match target="font">
  <edit name="antialias" mode="assign">
   <bool>true</bool>
  </edit>
</match>

<!--  enable/disable sub-pixel rendering: none, rgb, etc. --> 
<!-- note that subpixel rendering can cause color artifacts --> 
  <match target="font">
    <edit name="rgba" mode="assign"><const>none</const></edit>
  </match>

<!--  hinting --> 
 <match target="font">
  <edit name="hinting" mode="assign">
   <bool>false</bool>
  </edit>
 </match> 
 <match target="font">
  <edit name="hintstyle" mode="assign">
   <const>hintnone</const>
  </edit>
 </match>
<!--  enable/disable autohinter -->
<match target="font">
    <edit name="autohint" mode="assign">
      <bool>false</bool>
    </edit>
  </match>
<!--  filter to reduce color fringing on LCD monitors --> 
 <match target="font">
    <edit name="lcdfilter" mode="assign">
      <const>lcddefault</const>
    </edit>
 </match>

<!-- only disable antialias for some sizes -->
<!-- <match target="font">
 <test qual="any" name="size" compare="more">
  <double>0</double>
 </test>
 <test qual="any" name="size" compare="less">
  <double>9</double>
 </test>
 <edit name="antialias" mode="assign">
  <bool>false</bool>
 </edit>
</match> -->
 
 
 <match target="pattern">
   <edit name="dpi" mode="assign"><double>112</double></edit>
</match>


# preferred/default serif, sans and monospace fonts
# use 
# fc-match --verbose sans-serif
# to check what is actually use for the given request
<alias>
  <family>serif</family>
  <prefer><family>Nimbus Roman No9 L</family></prefer>
</alias>
<alias>
  <family>sans-serif</family>
  <prefer><family>Nimbus Sans L</family></prefer>
</alias>
<alias>
  <family>monospace</family>
  <prefer><family>Nimbus Mono L</family></prefer>
</alias>


</fontconfig

------------ 


-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to