Windows 10 reached EOS (end of support) on October 14, 2025. For more information, see this article.

Sök i support

Akta dig för supportbedrägerier: Vi kommer aldrig att be dig att ringa eller skicka ett sms till ett telefonnummer eller dela personlig information. Rapportera misstänkt aktivitet med alternativet "Rapportera missbruk".

Läs mer

Font wanted isn't the font that's displayed in Linux Ubuntu.

  • 13 svar
  • 1 har detta problem
  • 366 visningar
  • Senaste svar av STrRedWolf

fler alternativ

TL/DR: See the image. ;)

I'm on Ubuntu 20.04 (Xubuntu flavor), using Firefox 79.0, working on a web site. I'm coding specifically for Arial... and it's returning Times New Roman.

I have Arial installed, via the ttf-mscorefonts package and also adding them from a Win10 box.

Please, no "But you should do 'font-family: Arial, Veranda, sans-serif'" dismissive answers. Why? Because if I do "font-family: Arial, Veranda" I still get Times New Roman. I can even substitute "Pulsar Beta" here (a font that is installed to my local account) and it still gives me Times New Roman.

If I do "font-family: sans-serif" I get Veranda, not Arial... which is odd because Arial is my default font.

Doing "font-family: Veranda" gets my Times New Roman.

Chrome doesn't have this issue!

As a picture is worth a thousand words, see the pic.

What can I do? I did see some bugs that were fixed in v56, but none of the debugging tips help there.

TL/DR: See the image. ;) I'm on Ubuntu 20.04 (Xubuntu flavor), using Firefox 79.0, working on a web site. I'm coding specifically for Arial... and it's returning Times New Roman. I have Arial installed, via the ttf-mscorefonts package and also adding them from a Win10 box. ''Please, no "But you should do 'font-family: Arial, Veranda, sans-serif'" dismissive answers.'' Why? Because if I do "font-family: Arial, Veranda" I still get Times New Roman. I can even substitute "Pulsar Beta" here (a font that is installed to my local account) and it still gives me Times New Roman. If I do "font-family: sans-serif" I get Veranda, not Arial... which is odd because Arial is my default font. Doing "font-family: Veranda" gets my Times New Roman. Chrome doesn't have this issue! As a picture is worth a thousand words, see the pic. What can I do? I did see some bugs that were fixed in v56, but none of the debugging tips help there.
Bifogade skärmdumpar

Vald lösning

Huh... It looks like fonts-twemoji-svginot was the bad package... but it's no longer in Ubuntu's repos. Removing it has solved the problem.

Läs svaret i sitt sammanhang 👍 0

Alla svar (13)

fler alternativ

Do you allow pages to choose their own fonts ? What are the default font settings ?

  • Options/Preferences -> General: Fonts & Colors -> Advanced
    [X] "Allow pages to choose their own fonts, instead of my selections above"

Did you check the Arial font and Verdana font in FontForge ?

fler alternativ

Allow pages to choose their own fonts/colors is checked. Default serif is Times New Roman. Default sans-serif is "Default (Verdana)" Default monospace is "Default (Bitstream Vera Sans Mono)"

Installing FontForge... Checking /usr/share/fonts/truetype/msttcorefonts...

Arial.ttf says "ArialMT" Verdana.ttf says "Verdana"

tygris@redwolf:~$ fc-match Arial arial.ttf: "Arial" "Regular"

fler alternativ

Scratch that, sorry.

Ändrad av TyDraniu

fler alternativ

Where are the fonts installed ?

Does Firefox show them as possible choices for the default font ?

fler alternativ

/usr/share/fonts/truetype/msttcorefonts

And yes, they're shown as possible choices. I can set sans-serif as Arial and monospace as Courier New.

Also, in the test HTML I used, if I substitute in "Pulsar Beta" I get the default "Times New Roman" as well. This is also in the choices. "Pulsar Beta" is in ~/.local/share/fonts .

fler alternativ

Quote: I can set sans-serif as Arial and monospace as Courier New.

Does Firefox use that font when you set is as the default font if you check this in the Inspector ?

You can check in the Rules tab in the right panel in the Inspector what font-family is used for selected text. You can check in the Font tab in the right panel in the Inspector what font is actually used because Firefox might be using a different font than specified by the website.

fler alternativ

Negative. If I set it, for the test html file (see pic), it uses Times New Roman (the serif default) for Arial (a sans-serif font).

Rules says:

element {

   font-family: Arial;

}

Fonts says Times New Roman is used. No mention of Arial.

fler alternativ

Also, as a follow-up, if I change the default serif from "Times New Roman" to "Pulsar Beta" (a comic font), it uses Times New Roman.

fler alternativ

Is this with Firefox from the repositories or with Firefox from the Mozilla server ?

fler alternativ

Firefox from the repos, but Firefox from Mozilla has the same issue. I pulled a fresh copy to see if that had issues... and it does.

I've gone through my Xubuntu setup... and the font-config setup doesn't have any config files that would cause this issue. I can use Arial outside of Firefox. Chrome correctly pulls Arial as does XFCE and LibreOffice. It only happens in Firefox.

I have already removed my profile and pulled fresh, and used "Safe Mode". Same issue.

fler alternativ

Hmmm... weird... I just checked another install of Ubuntu on another PC, version 20.04 (same as the affected one)... and it's working there.

I wonder what the difference is...

fler alternativ

Just to document things, one of the installed fonts I had was screwing things up. I'm pinpointing the font now so I can send a bug report to Ubuntu... and also document it here.

fler alternativ

Vald lösning

Huh... It looks like fonts-twemoji-svginot was the bad package... but it's no longer in Ubuntu's repos. Removing it has solved the problem.