You are not logged in.

#1 2011-06-01 21:20:18

Kyansaa
Member
Registered: 2011-06-01
Posts: 29

[Solved] Fonts are weird on a few sites...

Hey !

I have a problem with the fonts of a few web sites (three or four web sites), I got this.

How to fix this ? Need I some fonts ? I have installed those fonts : xorg-fonts-type1 ttf-dejavu artwiz-fonts font-bh-ttf font-bitstream-speedo gsfonts sdl_ttf ttf-bitstream-vera ttf-cheapskate ttf-liberation otf-ipafont otf-takao ttf-vlgothic ttf-umeplus ttf-ipa-mona ttf-monapo.

Did I miss some fonts ?

Thanks.

Last edited by Kyansaa (2011-06-02 20:25:16)

Offline

#2 2011-06-01 21:31:53

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Fonts are weird on a few sites...

Aaaaaand what exactly is wrong with them? You mean that some letters are bigger than they should be?
What are your browser settings: do you allow websites to decide what fonts to use or do you pick which ones to use?

Offline

#3 2011-06-01 21:36:10

lukaszan
Member
Registered: 2011-05-05
Posts: 117

Re: [Solved] Fonts are weird on a few sites...

Oh yeah, I get the same with Midori. It's like on some webistes the fonts are not antialiased... No idea how to fix it though, as it's so random.

Offline

#4 2011-06-01 21:56:16

Kyansaa
Member
Registered: 2011-06-01
Posts: 29

Re: [Solved] Fonts are weird on a few sites...

karol, there is what I get on a pre-configured distribution.

And I want to configure the fonts like that on my arch. I use the default settings so I don't pick which ones to use.

Offline

#5 2011-06-01 22:00:22

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: [Solved] Fonts are weird on a few sites...

You have to Disable bitmap fonts, and if necessary substitute them with TTFs / OTFs. Read the article in the Wiki and you should be fine.


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#6 2011-06-02 02:20:38

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [Solved] Fonts are weird on a few sites...

Those don't look like bitmap fonts, they just seem not antialiased. I would try creating a ~.fonts.conf and tweaking that:

https://wiki.archlinux.org/index.php/Fo … figuration

Offline

#7 2011-06-02 05:15:55

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [Solved] Fonts are weird on a few sites...

Kyansaa wrote:

pre-configured distribution.

See for yourself which fonts firefox is using:

lsof | grep -i firefox | egrep -i 'ttf|pfb'

(It's best to close and re-open firefox, then go straight to the page in question, then run the command above. So as not to be confused by fonts on other web pages that Firefox has kept open).

Looks like you want cairo-ubuntu and a decent ~/.fonts.conf

Offline

#8 2011-06-02 05:34:42

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,923
Website

Re: [Solved] Fonts are weird on a few sites...


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#9 2011-06-02 07:01:44

amatriain
Member
Registered: 2011-06-02
Posts: 50

Re: [Solved] Fonts are weird on a few sites...

In my case, installing fontconfig-ubuntu and freetype2-ubuntu from AUR made a huge difference in font rendering inside firefox.

No other method I found in these forums (.fonts.conf, installing different font packages, disabling bitmap fonts...) made any difference.

I'm not sure if there are any side effects to installing those two packages, but for the moment I'm happy.

Offline

#10 2011-06-02 20:24:29

Kyansaa
Member
Registered: 2011-06-01
Posts: 29

Re: [Solved] Fonts are weird on a few sites...

pacman -R xorg-fonts-75dpi xorg-fonts-100dpi

This is working for me, I have no ugly fonts anymore.

Thanks a lot to everyone !

Offline

#11 2011-06-03 04:19:26

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [Solved] Fonts are weird on a few sites...

A standard ~/.fonts.conf entry (e.g. in Infinality's) is:

    <!-- Reject bitmap fonts in favour of Truetype, Postscript, etc. -->
    <match target="font" >
        <test name="rendering_style" qual="any" >
            <string>Infinality</string>
            <string>Windows 7</string>
            <string>Windows XP</string>
            <string>Apple</string>
        </test>
        <selectfont>
            <rejectfont>
                <pattern>
                    <patelt name="scalable">
                        <bool>false</bool>
                    </patelt>
                </pattern>
            </rejectfont>
        </selectfont>
    </match>

To reject bitmap fonts.

Offline

#12 2011-06-03 07:11:33

lukaszan
Member
Registered: 2011-05-05
Posts: 117

Re: [Solved] Fonts are weird on a few sites...

Kyansaa wrote:
pacman -R xorg-fonts-75dpi xorg-fonts-100dpi

This is working for me, I have no ugly fonts anymore.

Thanks a lot to everyone !

Worked here as well (Midori). Astonishing...

Offline

#13 2011-06-03 09:03:33

Kyansaa
Member
Registered: 2011-06-01
Posts: 29

Re: [Solved] Fonts are weird on a few sites...

lukaszan, yeah astonishing...

brebs, I prefere remove two packages, it's simple and I understand what I am doing.

Offline

#14 2011-06-03 09:55:48

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [Solved] Fonts are weird on a few sites...

Of course. However, depending on the distro, you can end up fighting the package manager over whether those two packages (or other collections of bitmap fonts) should be present. In such a situation, a single rule in ~/.fonts.conf is easier.

Looks like the required-by deps in Arch are pretty sensible, though.

Offline

#15 2011-06-03 11:12:02

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,923
Website

Re: [Solved] Fonts are weird on a few sites...

Yeah, those packages only usually come when one installs the whole xorg group.

Last edited by SanskritFritz (2011-06-03 11:13:19)


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

Board footer

Powered by FluxBB