Install Windows 11 Fonts Arch Linux

Do you miss using your favorite Windows fonts in Linux? Don't worry, it's easy to install them! In this blog post, I'll show you how to install Windows fonts in 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.
~ ❱ 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.
~ ❱ 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.
<?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:
Dibangun dengan Hugo
Tema Stack dirancang oleh Jimmy