Gianni Exile
April 17th, 2005, 08:29 AM
This one's simple... set DisplaySize as in
http://www.ubuntuforums.org/showthread.php?t=20976
(Ignore all the other stuff there).
Now X11 has dpi 96. Make sure Gnome sees it, run
"gnome-font-properties" hit Details and double check it's 96.
Now type, as your regular user name at a shell prompt, for KDE and other Xft apps: echo "Xft.dpi:96" >> ~/.Xresources
Lastly, edit ~/.fonts.conf ... here's mine. I merely changed the range to exclude from antialiasing from sizes 8-15 (pixel size 11-20) to sizes 8-11 (pixel 11-15).
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hintstyle" >
<const>hintslight</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="rgba" >
<const>rgb</const>
</edit>
</match>
<match target="font" >
<test compare="more" name="size" qual="any" >
<double>8</double>
</test>
<test compare="less" name="size" qual="any" >
<double>11</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>15</double>
</test>
<edit mode="assign" name="antialias" >
<bool>false</bool>
</edit>
</match>
</fontconfig>
Restart X (ctrl-alt-bksp) or reboot.
Now both Gnome and KDE fonts will be rendered correctly.
http://www.ubuntuforums.org/showthread.php?t=20976
(Ignore all the other stuff there).
Now X11 has dpi 96. Make sure Gnome sees it, run
"gnome-font-properties" hit Details and double check it's 96.
Now type, as your regular user name at a shell prompt, for KDE and other Xft apps: echo "Xft.dpi:96" >> ~/.Xresources
Lastly, edit ~/.fonts.conf ... here's mine. I merely changed the range to exclude from antialiasing from sizes 8-15 (pixel size 11-20) to sizes 8-11 (pixel 11-15).
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font" >
<edit mode="assign" name="hinting" >
<bool>true</bool>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="hintstyle" >
<const>hintslight</const>
</edit>
</match>
<match target="font" >
<edit mode="assign" name="rgba" >
<const>rgb</const>
</edit>
</match>
<match target="font" >
<test compare="more" name="size" qual="any" >
<double>8</double>
</test>
<test compare="less" name="size" qual="any" >
<double>11</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>15</double>
</test>
<edit mode="assign" name="antialias" >
<bool>false</bool>
</edit>
</match>
</fontconfig>
Restart X (ctrl-alt-bksp) or reboot.
Now both Gnome and KDE fonts will be rendered correctly.