Chromium fonts

Chromium fonts

Chromium

Chromium web browser fonts might not look well on first run. Almost always they are ugly.

 

File

To make fonts look better, create the following file:

~/.config/fontconfig/fonts.conf

 
The file usually does not exist in GTK desktops like Budgie, MATE, Cinnamon, and GNOME.

Though it does usually exist in Qt desktops like KDE and LxQt.

 

Content

Put the following lines in a newly created (GTK) or at the end of an existing (Qt) file.  In Qt-based desktops put them before the final </fontconfig> tag:

<!--nice looking chromium fonts starts -->
<match target="font">
    <edit name="autohint" mode="assign">
        <bool>true</bool>
    </edit>
    <edit name="hinting" mode="assign">
        <bool>true</bool>
    </edit>
    <edit mode="assign" name="hintstyle">
        <const>hintslight</const>
    </edit>
</match>
<!--nice looking chromium fonts ends -->

Restart Chromium.

Done.

Fonts

To improve an overall fonts appearance, run the command:

fc-cache -fv

Log out and back in.

Done.

The command is not specific to Chromium.  It can be executed in any distro, with any DE, at any time, more than once.  It simply refreshes the font cache which can improve rendering if changes were made to the font configuration since the last time the cache was refreshed.

Contributors:

(Visited 3,718 times, 1 visits today)

Pin It on Pinterest

Share This