[Webkit-unassigned] [Bug 67598] [Gtk] Some sites fall back to monospace fonts, when they should be using variable width

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 1 11:02:43 PDT 2011


--- Comment #10 from Martin Robinson <mrobinson at webkit.org>  2011-10-01 11:02:43 PST ---
Unfortunately this doesn't look like a bug. What's happening here is that you have a font installed on your system named "Clean" and the page specifies one called "Clean" as well. Fontconfig is returning that font when WebKitGTK+ asks for a font named "Clean." Obviously the Clean that the page authors want is not the same as the Clean you have installed on your system. :)

The odd thing is that even though I have that font installed on my system as well, Fontconfig never returns it, even when I explicitly ask for "Clean":

$ fc-match Clean
DejaVuSans.ttf: "DejaVu Sans" "Book"

Something about your Fontconfig settings in /etc/fonts/ is different from mine such that Fontconfig on your system does return Clean:

fc-match Clean -> clR6x12-ISO8859-1.pcf.gz: "Clean" "Regular"

I'm quite curious what distribution you are running and if you've ever fiddled with the system font settings. You have a couple options.

1. Install the Microsoft Core fonts. Microsoft has released free versions of their proprietary fonts. This would mean that when we ask Fontconfig for "Arial" we just use Arial.

2. Figure out why Fontconfig is returning Clean and flip whatever switch is necessary in Fontconfig to disable that.

3. Hard replace Arial with the Liberation variants (which you have installed). They try to be metric compatible. You can do this by inserting something like this in your Fontconfig settings:

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

For more information see this page: https://wiki.archlinux.org/index.php/Font_Configuration#Replace_fonts

Hope that helps!

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list