Redirect Helvetica to Bitstream Vera Sans?

Joe Marcus Clarke marcus at FreeBSD.org
Mon Jan 23 17:49:41 PST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joseph Vella wrote:
> I've got most of my fonts looking good on my LCD display. Antialiasing is 
> working, etc..   But there are many pages and emails that look horrible.  
> Whenever I look at the source it has always been Verdana, Helvetica or Arial.  
> All the work I've done that has worked to improve my fonts has been in 
> ~/.fonts.conf
> 
> Here is what I'm trying that doesn't seem to have any effect:
> 
>  <match target="pattern" name="family" >
>  <test name="family" qual="any" >
>    <string>Helvetica</string>
>  </test>
>  <edit mode="assign" name="family" >
>    <string>sans-serif</string>
>  </edit>
>  </match>
>  <match target="pattern" name="family" >
>  <test name="family" qual="any" >
>    <string>Verdana</string>
>  </test>
>  <edit mode="assign" name="family" >
>    <string>sans-serif</string>
>  </edit>
>  </match>
> 
> 
> In the same file I have antialias set to true, hinting set to true and 
> hintstyle set to hintfull. Those all make a noticable difference.  I haven't 
> put size requirements on antialiasing, but I don't feel that's my problem.  
> Because increasing the size of the problematic fonts doesn't help.
> 
> I've tried the above redirects to Bitstream Vera Sans, but that also had no 
> effect.
> 
> I did try to put Verdana and Arial fonts from a windows machine into ~/.fonts 
> directory, followed up with a fc-cache -f command.  That had no effect.
> 
> Any ideas?  Also, where do I find what sans-serif is set to?

This will do what you want:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
        <match target="pattern" name="family">
                <test qual="any" name="family">
                        <string>Helvetica</string>
                </test>
                <edit name="family" mode="assign">
                        <string>sans-serif</string>
                </edit>
            </match>
</fontconfig>

Joe

> 
> Joseph Vella
> 
> 
> 
> _______________________________________________
> freebsd-x11 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-x11
> To unsubscribe, send any mail to "freebsd-x11-unsubscribe at freebsd.org"
> 


- --
Joe Marcus Clarke
FreeBSD GNOME Team	::	gnome at FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD1Yezb2iPiv4Uz4cRAidLAJ9oIiHxfg8OwcZYEQZLHgkUo81+4ACgqnFK
IUpFTate5Qhoku2venu2Xw0=
=UBng
-----END PGP SIGNATURE-----


More information about the freebsd-x11 mailing list