Install Windows 11 Fonts Arch Linux

In this blog post, I’ll show you how to install Windows fonts in Arch Linux using PKGBUILD

Download Windows 11 Fonts

  1. First, you need to download the Windows 11 fonts.
  2. After downloading the fonts, extract the files. The format is a zst file, which you can extract with zstd.
1
2
zstd -d Windows\ 10\ Fonts.tar.zst
tar -xvf Windows\ 10\ Fonts.tar
  1. Navigate to the font’s directory you just extracted and run this command.
1
makepkg -si PKGBUILD
  1. 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:

  1. The configuration of the font is located at:
    • $XDG_CONFIG_HOME/fontconfig/fonts.conf
    • /etc/fonts/fonts.conf
  2. You should edit the fonts.conf and add this line.
1
2
3
4
5
6
7
8
9
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
  <match target="font">
    <edit name="embeddedbitmap" mode="assign">
      <bool>false</bool>
    </edit>
  </match>
</fontconfig>
  1. Finally, please execute this command sudo fc-cache -f after editing fonts.conf

Source

  1. ArchWiki: wiki.archlinux.org/title/Microsoft_fonts
  2. Original PKGBUILD are from AUR: aur.archlinux.org/packages/ttf-ms-win11
Bantu bagikan halaman ini ke:
Built with Hugo
Theme Stack designed by Jimmy