This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Firefox not using mscorefonts after 18.04 upgrade

Tags: None
(comma "," separated)
stevemc
Registered Member
Posts
1
Karma
0
After upgrading to 18.04, Firefox doesn't appear to have access to microsoft fonts (Arial, etc.). Everything falls back to the default font (Noto Sans/Serif).

Firefox will let me choose Arial as a default font in the font preferences, so it somehow knows it's there, but won't use it. This isn't a mapping issue of 'sans-serif'->Arial, but the fact it won't use Arial at all.

ttf-mscorefonts-installer is installed properly. Other apps like Chrome appear to be able to use Arial correctly.

fc-match seems to find the ms fonts just fine:
Code: Select all
$ for family in serif sans-serif monospace Arial Helvetica Verdana "Times New Roman" "Courier New"; do   echo -n "$family: ";   fc-match "$family"; done
serif: NotoSerif-Regular.ttf: "Noto Serif" "Regular"
sans-serif: NotoSans-Regular.ttf: "Noto Sans" "Regular"
monospace: Hack-Regular.ttf: "Hack" "Regular"
Arial: arial.ttf: "Arial" "Regular"
Helvetica: arial.ttf: "Arial" "Regular"
Verdana: verdana.ttf: "Verdana" "Regular"
Times New Roman: times.ttf: "Times New Roman" "Regular"
Courier New: cour.ttf: "Courier New" "Regular"


Screenshots:
Image
Image

What can I do to fix this?
User avatar
ytomino
Registered Member
Posts
15
Karma
0
OS
Hi. I'm taking about same issue in viewtopic.php?f=309&t=154077&p=405700 .

Perhaps Firefox cannot load any local fonts except the default fonts.
In my case, adding @font-face into .mozilla/firefox/*.default/chrome/userContent.css makes Firefox to load, like below:

---- %< ----
@font-face {
font-family: 'Arial';
src: local('Liberation Sans'),
url('file:///usr/share/fonts/truetype/liberation2/LiberationSans-Regular.ttf');
}
---- >% ----

To set the default fonts, see bobbywibowo's gist liked from viewtopic.php?f=309&t=154077&p=405700#p405657 .
User avatar
ytomino
Registered Member
Posts
15
Karma
0
OS
Good news. It's fixed by updating today.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]