Penguin
Diff: AntiAliasedFonts
EditPageHistoryDiffInfoLikePages

Differences between version 11 and predecessor to the previous major change of AntiAliasedFonts.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 11 Last edited on Tuesday, October 19, 2004 12:52:13 pm by CraigBox Revert
Older page: version 10 Last edited on Wednesday, January 21, 2004 12:52:08 pm by AristotlePagaltzis Revert
@@ -12,9 +12,9 @@
 !!! Application support 
 Newer [X11] applications can use the antialiasing support that is built into the Xft/FreeType libraries. 
  
 !! [GTK2] and Qt 3 
-Both of these toolkits support antialiasing by default. 
+Both of these toolkits support antialiasing by default (using Fontconfig, see below)
  
 !! [GTK] 1.2 
 You need [libgdkxft|http://gdkxft.sourceforge.net/], a library that modifies the font-drawing parts of the libraries to include anti-alias support. Unfortunately the library is buggy and the project is dead, so you are stuck with some widgets occasionally exhibiting faulty text rendering. To use this library, install it (__apt-get install libgdkxft0__) and export __LD_PRELOAD=/usr/lib/libgdkxft.so__. All [GTK] 1.2 applications started from that shell should be using AA. Be sure to [RTFM] (__/usr/share/doc/libgdkxft0/README.Debian__). 
  
@@ -24,4 +24,42 @@
  
 !! Mozilla 
  
 This is, at the core, a [GTK] application. Note that it can be compiled against either 1.2 or 2.x. In the former case, the HTML rendering engine will still be able to use antialiased fonts natively, but the widgets will remain unantialiased unless you go through the libgdkxft contortions described above. See MozillaNotes for the settings you need to add to your preferences to enable antialiasing. 
+  
+!! Fontconfig  
+  
+! Turning anti aliasing off for certain sites  
+  
+Taken from [http://impulsetorm.com/texts/view/44]:  
+  
+For example, to disable anti aliasing on fonts between size 8 and 15pt (or 11 and 20px), drop this in ~/fonts.conf:  
+  
+<verbatim>  
+<?xml version="1.0"?>  
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">  
+<fontconfig>  
+ <dir>~/.fonts</dir>  
+ <match target="font" >  
+ <test compare="more" name="size" qual="any" >  
+ <double>8</double>  
+ </test>  
+ <test compare="less" name="size" qual="any" >  
+ <double>15</double>  
+ </test>  
+ <edit mode="assign" name="antialias" >  
+ <bool>false</bool>  
+ </edit>  
+ </match>  
+ <match target="font" >  
+ <test compare="more" name="pixelsize" qual="any" >  
+ <double>11</double>  
+ </test>  
+ <test compare="less" name="pixelsize" qual="any" >  
+ <double>20</double>  
+ </test>  
+ <edit mode="assign" name="antialias" >  
+ <bool>false</bool>  
+ </edit>  
+ </match>  
+</fontconfig>  
+</verbatim>