Last active
September 20, 2022 20:48
-
-
Save meowtochondria/aa22605d84669fea61852eb010349a6a to your computer and use it in GitHub Desktop.
Fix Calibri rendering in Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mkdir $HOME/.config/fontconfig/conf.d | |
| echo -e "<fontconfig>\n <match target=\"font\">\n <test compare=\"contains\" name=\"family\">\n <string>Calibri</string>\n </test>\n <edit mode=\"assign\" name=\"embeddedbitmap\">\n <bool>false</bool>\n </edit>\n </match>\n</fontconfig>\n" > $HOME/.config/fontconfig/conf.d/calibri.conf |
Author
Author
better to disable all embedded bitmap fonts
https://wiki.archlinux.org/title/Font_configuration#Disable_bitmap_fonts
~/.config/fontconfig/conf.d/20-no-embedded.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<match target="font">
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
</fontconfig>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What does the script do?
Ensures that
$HOME/.config/fontconfig/conf.d/path exists, then writes a file called$HOME/.config/fontconfig/conf.d/calibri.confwith following content:You will need to restart after making this change. More info can be found in
man fonts-confin Ubuntu and its derivatives.