maaajo
maaajo

Reputation: 1025

Firefox Developer ignoring font-weight

I'm using the newest Firefox Developer Edition (78.0b2). Unfortunately when trying to import a font from google-fonts with multiple weights, Firefox is ignoring the font weight where in Chrome everything works as expected.

I tried to clean cache, disable adblocker etc, nothing helps. When page initially loads I can clearly see that correct weights are applied to the fonts but then they are immediately replaced by first weight imported from google fonts.

Here is how I'm importing the fonts:

<link href="https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@700&family=Work+Sans:wght@400;500;600&display=swap" rel="stylesheet"> 

Here is screenshot of how it looks like in Firefox:

enter image description here

Here is how it looks in Chrome:

enter image description here

What is even more interesting that when I open the page in Firefox but in incognito mode, the correct weights are applied. But as I said, I tried to clean cache with ctrl+f5 or ctr+shift+r but it didnt help.

Appreciate your help!

Upvotes: 1

Views: 263

Answers (3)

Shtole
Shtole

Reputation: 354

If it seems that Firefox is ignoring font-weight property, you could try the following:

  1. Open about:config
  2. Check Show only modified preferences
  3. Type font to show all font related settings
  4. Revert them to default values.

It has worked for me.

Upvotes: 0

Stacksof99
Stacksof99

Reputation: 97

I've had issues with Firefox and define everything through CSS using:

@supports(-moz-appearance:meterbar) and (max-width: 
768px){foo}} 

Upvotes: 1

maaajo
maaajo

Reputation: 1025

Closing this one, reinstalling Firefox fixed the issue for me.

Upvotes: 1

Related Questions