Linux instructions

John N Underwood edited this page Nov 20, 2018 · 24 revisions

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: otf-fira-code.

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

Gentoo

emerge -av media-fonts/fira-code

Fedora

A Fedora copr repository is available. Package sources are available on Gitlab.

To install, perform the following commands:

dnf copr enable evana/fira-code-fonts
dnf install fira-code-fonts

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 isn’t, 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

for type in Bold Light Medium Regular Retina; do
    file_path="${HOME}/.local/share/fonts/FiraCode-${type}.ttf"
    file_url="https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-${type}.ttf?raw=true"
    if [ ! -e "${file_path}" ]; then
        echo "wget -O $file_path $file_url"
        wget -O "${file_path}" "${file_url}"
    else
	echo "Found existing file $file_path"
    fi;
done

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

More details

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.