I install firefox «Quantum» 60.0.2 (64bits) on Debian GNU/Linux Stretch via snap, follow this and I have big font rendering problems with this version of Firefox. a screen cap of Jupyter Notebook header with Firefox Quantum and a screen cap of the same page with Firefox ESR.
I try all solutions I could find :
-
add a
.fonts.conf
like this; -
change
gfx.canvas.azure.backends
andgfx.content.azure.backends
fromskia
tocairo
first, and todirect2d1.1,cairo,skia
finally; -
try to deactivate graphic acceleration;
-
set the same font as default (
serif
16,serif
,sans-serif
,monospace
12).
But nothing works ! Perhaps I miss something but I couldn't find anything else.
Best Answer
1 - In your user directory, create a nex subdirectory: mkdir -p ~/.config/fontconfig
2 - With a text editor, create the file font.conf (~/.config/fontconfig/font.conf) and paste this content :
<?xml version='1.0'?> <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> <fontconfig> <match target="font"> <edit mode="assign" name="rgba"> <const>rgb</const> </edit> </match> <match target="font"> <edit mode="assign" name="hinting"> <bool>true</bool> </edit> </match> <match target="font"> <edit mode="assign" name="hintstyle"> <const>hintslight</const> </edit> </match> <match target="font"> <edit mode="assign" name="antialias"> <bool>true</bool> </edit> </match> <match target="font"> <edit mode="assign" name="lcdfilter"> <const>lcddefault</const> </edit> </match> </fontconfig>
Save this file (~/.config/fontconfig/fonts.conf)3- Restart Firefox.