1
1
mirror of https://github.com/tonsky/FiraCode.git synced 2024-06-30 14:06:31 +03:00
36 Linux instructions
Nikita Prokopov edited this page 2023-07-21 18:43:56 +02:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

IMPORTANT

Starting from v5, Fira Code does not distribute OTF. All packages here that have otf-* in the name are now outdated and should be replaced with ttf equivalents.

Installing with a Package Manager

Ubuntu Zesty (17.04), Debian Stretch (9) or newer

  1. Make sure that the universe (for Ubuntu) or contrib (for Debian) repository is enabled (see how-to for Ubuntu or Debian docs)
  2. Install fonts-firacode package either by executing sudo apt install fonts-firacode in the terminal or via GUI tool (like “Software Center”)

Arch Linux

Fira Code package is available in the official repository: ttf-fira-code.

Variant of Fira Code package is available in the AUR: otf-fira-code-git.

Gentoo

emerge -av media-fonts/fira-code

Fedora

Fira Code package is available in the official repository.

To install, perform the following command:

dnf install fira-code-fonts

Solus

sudo eopkg install font-firacode-ttf

Void linux

xbps-install font-firacode

Manual Installation

With most desktop-oriented distributions, double-clicking each font file in the ttf folder and selecting “Install font” should be enough. If it isnt, create and run download_and_install.sh script:

#!/usr/bin/env bash

fonts_dir="${HOME}/.local/share/fonts"
if [ ! -d "${fonts_dir}" ]; then
    echo "mkdir -p $fonts_dir"
    mkdir -p "${fonts_dir}"
else
    echo "Found fonts dir $fonts_dir"
fi

version=5.2
zip=Fira_Code_v${version}.zip
curl --fail --location --show-error https://github.com/tonsky/FiraCode/releases/download/${version}/${zip} --output ${zip}
unzip -o -q -d ${fonts_dir} ${zip}
rm ${zip}

echo "fc-cache -f"
fc-cache -f

More details