Installing with a Package Manager
Ubuntu Zesty (17.04), Debian Stretch (9) or newer
- Make sure that the
universe
(for Ubuntu) orcontrib
(for Debian) repository is enabled (see how-to for Ubuntu or Debian docs) - Install
fonts-firacode
package either by executingsudo 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
免责声明:
当前网页内容, 由 大妈 ZoomQuiet 使用工具: ScrapBook :: Firefox Extension 人工从互联网中收集并分享;
内容版权归原作者所有;
本人对内容的有效性/合法性不承担任何强制性责任.
若有不妥, 欢迎评注提醒:
或是邮件反馈可也:
askdama[AT]googlegroups.com
订阅 substack 体验古早写作:
点击注册~> 获得 100$ 体验券:
关注公众号, 持续获得相关各种嗯哼:
自怼圈/年度番新

关于 ~ DebugUself with DAMA ;-)
粤ICP备18025058号-1
公安备案号: 44049002000656 ...::