I was trying a bitmap font from github, and I had to enable bitmap fonts as they are disabled by default in Ubuntu. I did not know that enabling bitmap fonts would have some side-effects. I'm sure something seems wrong with my the text in Chrome(just as if it's using a new font altogether). I don't like it. So I'd like to revert it as it was before I enabled bitmap fonts.
I used the following commands to enable bitmap fonts:
cd /etc/fonts/conf.d/
sudo rm /etc/fonts/conf.d/10* && sudo rm -rf 70-no-bitmaps.conf && sudo ln -s ../conf.avail/70-yes-bitmaps.conf
sudo dpkg-reconfigure fontconfig
Please help me to disable bitmap fonts. Thanks in advance!
Aside answer by @Candy Gumdrop, it's good to disable
embedded bitmap
, some fonts (like Calibri) will look terrible in some resolutions (see image bellow) if this setting stills enabled. Calibri fonts and other cleartype fonts have bitmap versions embedded in them which activate at small sizes, which makes it look bad.You can disable by doing this:
The directory
/etc/fonts/conf.d/
contains symbolic links to configuration files within/etc/fonts/conf.avail/
. These symlinks can be added and removed to customize the configuration of fontconfig.The commands you previously ran disabled all
10-*
configuration options, as well as disabling70-no-bitmaps
and enabling70-yes-bitmaps
. To reverse the latter part specifically, you can run the following:To reverse the effect of disabling the
10-*
configuration files depends on which config files you had enabled to begin with. Here are the10-*
config files I have enabled on my machine:Alternatively, here is how you can enable the default
10-*
options for Ubuntu Bionic:I would personally recommend however, that you opt for
sub-pixel-rgb
instead ofantialias
unless you don't have a standard LCD monitor.You may find however that the strange font rendering you're getting in Chrome is because you disabled these
10-*
config files and not because you enabled bitmap fonts. You may want to try only re-enabling just these config files without swapping back from70-yes-bitmaps
to70-no-bitmaps
before reverting completely to having no bitmap fonts. Enabling70-yes-bitmaps
should not affect any other fonts besides allowing bitmap fonts to be used. It is also possible that you have some missing fonts and may get better results than you had originally by running:Finally, after you have altered your fontconfig configuration, you should run:
This will update your fontconfig cache so your changes can take effect. You may also need to restart your programs / log out and back in / reboot your computer to see the changes take effect.
Without sudo-privileges it can be done:
alternatively the same as terminal-command:
More infos: https://forums.linuxmint.com/viewtopic.php?p=1961136#p1961136