sm-users AT lists.ibiblio.org
Subject: Sourcemage Users List
List archive
[SM-Users] Nice fonts with fontconfig (removing MS fonts)
- From: Mads Laursen <dossen+sgl AT daimi.au.dk>
- To: Sourcemage Users List <sm-users AT lists.ibiblio.org>
- Subject: [SM-Users] Nice fonts with fontconfig (removing MS fonts)
- Date: Mon, 1 Dec 2003 22:26:23 +0100
I just made a small discovery, that I'd like to share with the list (I
know I would have found it useful, before tonight).
For some time I've been bothered by some webpages coming up with lots
of garbage in the text. Quotes and danish special characters where
replaced by other international characters.
Today I desided to find out why that was happening, so I started to
play around with the font settings. After a bit of digging I found
that it was the Arial font from the msttf package that was causing the
problems.
My first attempt at a solution was simply to force mozilla to use my
selected fonts (Bitstream Vera). But that turned out to be a bit too
heavyhanded, since pages designed for sans serif fonts where rendered
with serifs and so on.
Then I turned to the fontconfig setup (/etc/fonts/local.conf), where I
added these lines:
<alias>
<family>Times</family>
<accept><family>Bitstream Vera Serif</family></accept>
</alias>
<alias>
<family>Arial</family>
<accept><family>Bitstream Vera Sans</family></accept>
</alias>
<alias>
<family>Courier</family>
<accept><family>Bitstream Vera Sans Mono</family></accept>
</alias>
... and so on for all the fonts provided by msttf
After that I dispelled msttf, and suddenly webpages looked a lot
better.
So if anybody else out there have problems text on webpages, try
removing msttf (I think the fontconfig stuff is not strictly needed,
but I like the fallbacks to be explicit).
/dossen
--
Shaw's Principle:
Build a system that even a fool can use, and only a fool will
want to use it.
Attachment:
pgp1ysw_hMhcu.pgp
Description: PGP signature
-
[SM-Users] Nice fonts with fontconfig (removing MS fonts),
Mads Laursen, 12/01/2003
- Re: [SM-Users] Nice fonts with fontconfig (removing MS fonts), Sergey A. Lipnevich, 12/01/2003
Archive powered by MHonArc 2.6.24.