In this blog post, I’ll show you how to install Windows fonts in Arch Linux using PKGBUILD
Download Windows 11 Fonts
- First, you need to download the Windows 11 fonts.
- After downloading the fonts, extract the files. The format is a
zst
file, which you can extract withzstd
.
~ ❱ zstd -d Windows\ 10\ Fonts.tar.zst
~ ❱ tar -xvf Windows\ 10\ Fonts.tar
- Navigate to the font’s directory you just extracted and run this command.
~ ❱ makepkg -si PKGBUILD
- Wait until installation completed.
Issue
Some Microsoft TTF fonts such as Calibri and Cambria contain embedded bitmap fonts for specific font sizes, which are not anti-aliased. If embedded bitmaps are enabled, the fonts are not anti-aliased at those specific sizes. Embedded bitmap fonts can be disabled in the Font configuration:
- The configuration of the font is located at:
$XDG_CONFIG_HOME/fontconfig/fonts.conf
/etc/fonts/fonts.conf
- You should edit the
fonts.conf
and add this line.
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
</fontconfig>
- Finally, please execute this command
sudo fc-cache -f
after editingfonts.conf
Source
- ArchWiki: wiki.archlinux.org/title/Microsoft_fonts
- Original PKGBUILD are from AUR: aur.archlinux.org/packages/ttf-ms-win11