You are not logged in.

#1 2007-02-17 09:42:30

ampersand
Member
Registered: 2006-09-27
Posts: 3

Problem with font face

Hi
I've observed that Helvetica font looks ugly and I want to replace it in local.conf. I've written appropriate line in /etc/fonts/local.conf. To check it I try this html code:

<html>
    <body>
        <font name="Helvetica">
                            Some stupid text.
        </font>
    </body>
</html>

Ok it works.
But when I change font name to font face font still looks ugly. This is entry in local.conf:

    <match target="pattern" name="family">
        <test qual="any" name="family">
             <string>Helvetica</string>
        </test>
        <edit name="family" mode="assign">
            <string>Verdana</string>
        </edit>
    </match>

What I must do to fix it ? Some sites like http://www.4front-tech.com/ unfortunatelly use font face and results are bad.


Information streams,
simulating dreams
Interactive mind-control, systematic
overflow

Offline

#2 2007-02-17 10:31:47

JGC
Developer
Registered: 2003-12-03
Posts: 1,664

Re: Problem with font face

Hmm, it's actually a bug in fontconfig rules I see. We replace Helvetica, Times and Courier with Sans-serif, Serif and Monospace. Within the fontconfig rules these generic font families are replaced by more modern fonts:

<alias>
        <family>Bitstream Vera Sans</family>
        <family>DejaVu Sans</family>
        <family>Helvetica</family>
        <family>Arial</family>
        <family>Verdana</family>
...

Helvetica (the bitmap font!) is in front of Arial and Verdana. If you don't have Bitstream Vera Sans or Dejavu Sans installed, it will render Sans-serif as Helvetica instead of Arial/Verdana.

Offline

Board footer

Powered by FluxBB