[ltp] Help with Helvetica (wonderful in GTK1; gruesome in GTK2)

Michele Campeotto linux-thinkpad@linux-thinkpad.org
Tue, 11 Apr 2006 09:26:05 +0200


On 4/11/06, Richard Neill <rn214@hermes.cam.ac.uk> wrote:
> So, has anyone found out how to make GTK2 applications use the
> old-fashioned fonts without messing them up?  Extra bonus points for

  Here is my screenshot using Microsoft's Arial font:
http://h.micampe.it/fonts-1.png
  To me it looks just like your goal. I'm using Ubuntu Dapper, with no
changes to the stock configuration, I just installed msttcorefonts and
disabled antialiasing from GNOME's font panel.
  You can get my fonts configuration here: http://h.micampe.it/etc-fonts.ta=
r.gz

> getting GTK2 to antialias but *only* above 15 point.

  This is the easy part, actually. I have not tested it, but you have
to create a /etc/fonts/local.conf or ~/.fonts.conf with something
like: (man fonts-conf)

<?xml version=3D"1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- conf.d/yes-bitmaps.conf -->
<fontconfig>
=09<match target=3D"font">
=09=09<test name=3D"pixelsize" compare=3D"more">
=09=09=09<double>15</double>
=09=09</test>
=09=09<edit name=3D"antialias">
=09=09=09<bool>true</bool>
=09=09</edit>
=09</match>
=09<match target=3D"font">
=09=09<test name=3D"pixelsize" compare=3D"less">
=09=09=09<double>15</double>
=09=09</test>
=09=09<edit name=3D"antialias">
=09=09=09<bool>false</bool>
=09=09</edit>
=09</match>
</fontconfig>


  mic

--
Michele Campeotto - www.micampe.it

It's psychosomatic. You need a lobotomy. I'll get a saw.
=09-- Calvin