Open Bug 1607057 Opened 4 years ago Updated 2 years ago

Fonts suddenly became ugly

Categories

(Core :: Layout: Text and Fonts, defect, P3)

73 Branch
x86_64
Linux
defect

Tracking

()

UNCONFIRMED

People

(Reporter: aravkasi, Unassigned)

Details

Attachments

(1 file)

Attached image Screenshot

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0

Steps to reproduce:

I don't know what I did. Suddenly, I notice that my firefox fonts have changed. I was installing some icon fonts, as I'm setting up my computer, but I don't know what exactly cause this change. But now, the font used for the webpage titles in the tabs, the font used in the address bar, and the fonts used in twitter and WhatsApp have changed to the same (ugly) font. I tried changing lots of fonts in about:preferences, but none if it seems to have any effect. I also tried setting fonts at ~/.config/fontconfig/fonts.conf, but it has no effect. I'm on Arch Linux with bspwm, if it matters. Please help!

Actual results:

The font changed unexpectedly. This font is wide and ugly.

Expected results:

The font shouldn't have changed.

Component: Untriaged → Layout: Text and Fonts
OS: Unspecified → Linux
Product: Firefox → Core
Hardware: Unspecified → x86_64

Does this reproduce on older firefox versions? For example, does it happen if you use mozregression to use e.g. Firefox 70 like:

$ mozregression --launch 70

?

If not, is there any chance you could run:

$ mozregression --good 70

To find which change broke it in Firefox if any?

How do I install mozregression on arch?

pip install --user mozregression should do, or sudo pip install mozregression to do it globally.

I tried pip install --user mozregression, but then the mozregression command doesn't exist.

Should be in ~/.local/bin, you gotta add that to your $PATH, I think.

:dbaron I don't think so.
:emilio yes, the issue also seems to be in firefox 70. I figured out that it's using the Bitstream Vera font, which is why it looks like this, but it's not changing in some websites even after changing firefox's settings and fontconfig. Here's a screenshot on firefox 70.

Jonathan, any clues here?

Flags: needinfo?(jfkthame)
Priority: -- → P3

I suspect that one of the icon-font/emoji-font packages that the reporter has installed is inserting fontconfig rules that force the use of Bitstream Vera in cases where the user doesn't really want to see it (and describes it as an "ugly" font). I've seen examples of things like this:

  <match target="pattern">
    <!-- If the requested font is sans-serif -->
    <test qual="any" name="family">
        <string>sans-serif</string>
    </test>
    <!-- Make Bitstream Vera Sans the first result -->
    <edit name="family" mode="prepend_first">
      <string>Bitstream Vera Sans</string>
    </edit>
    <!-- Followed by Twitter Color Emoji -->
    <edit name="family" mode="prepend_first">
      <string>Twitter Color Emoji</string>
    </edit>
  </match>

(excerpted from https://github.com/eosrei/twemoji-color-font/blob/master/linux/fontconfig/56-twemoji-color.conf).

Installing a font package that has fontconfig fragments like this could explain the "unexpected" fonts the reporter is seeing. The solution in that case is to remove the offending package or modify the fontconfig configuration files to not override default fonts like this.

So I think this is probably a font configuration issue, not a Firefox bug.

Flags: needinfo?(jfkthame)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: