Ubuntu – Firefox 57.0 font is weird compared to Google Chrome font in Ubuntu 14.04

14.04firefoxfonts

firefox font problem screenshot

I already tried these:

  1. Enabling and disabling hardware acceleration.
  2. sudo apt-get install ttf-mscorefonts-installer culmus
  3. Unity Tweak Tool >Font> Hinting > Slight
  4. Changing the default fonts
  5. Checking :Allow pages to choose their own fonts, instead of your selections above
  6. sudo apt-get install msttcorefonts(it gives output:selecting 'ttf-mscorefonts-installer' instead of 'msttcorefonts')

This is the google chrome screenshot:

Google chrome Font looks much better

Also , in about:config > gfx.font .There is no option for gfx.font_rendering.cleartype_params.rendering_mode which was given a solution
here

Best Answer

Optional

If it exists, remove fonts.conf; fonts.conf is used by KDE applications, but Ubuntu uses gsettings instead. On Ubuntu, it is a good idea to remove this file, so it does not interfere with your font settings. In a terminal, execute the following.

rm ~/.config/fontconfig/fonts.conf

Select Hinting

Select one of the following options, depending on your font hinting preference.

  1. Full Hinting (Try this first, since I suspect it is what you will like most)

    If you want full hinting, execute the following in a terminal.

    sudo rm /etc/fonts/conf.d/10-hinting-*.conf
    sudo ln -sv /etc/fonts/conf.avail/10-hinting-full.conf /etc/fonts/conf.d/
    
  2. Medium Hinting

    If you want medium hinting, execute the following in a terminal.

    sudo rm /etc/fonts/conf.d/10-hinting-*.conf
    sudo ln -sv /etc/fonts/conf.avail/10-hinting-medium.conf /etc/fonts/conf.d/
    
  3. Slight Hinting

    To undo this change, or to use slight hinting (default), execute the following in a terminal.

    sudo rm /etc/fonts/conf.d/10-hinting-*.conf
    sudo ln -sv /etc/fonts/conf.avail/10-hinting-slight.conf /etc/fonts/conf.d/
    

Check Results

Reboot, since the above changes are global to your system. Launch Firefox and hopefully you will see sharper, clearer fonts. Also, note that the address / search bar in Firefox may still display slightly fuzzy fonts, and I have not found a way to change this. However, you should see a marked improvement in web pages.

Related Question