Fira code linux install

Installing FiraCode on Windows and Ubuntu

Hello again, JD here. Today I’m writing about how to install FiraCode on Windows and Ubuntu. This post is copying and pasting some commands on the console (at least that’s the way I do it). So let’s get to it.

About FiraCode

FiraCode is a monospaced font with programming ligatures developed by Nikita Prokopov (tonsky on GitHub).

tonsky / FiraCode

Free monospaced font with programming ligatures

Fira Code: free monospaced font with programming ligatures

Problem

Programmers use a lot of symbols, often encoded with several characters. For the human brain, sequences like -> , or := are single logical tokens, even if they take two or three characters on the screen. Your eye spends a non-zero amount of energy to scan, parse and join multiple characters into a single logical one. Ideally, all programming languages should be designed with full-fledged Unicode symbols for operators, but that’s not the case yet.

Solution

Fira Code is a free monospaced font containing ligatures for common programming multi-character combinations. This is just a font rendering feature: underlying code remains ASCII-compatible. This helps to read and understand code faster. For some frequent sequences like .. or // , ligatures allow us to correct spacing.

Download & Install

Support

Installing on Windows

To install FiraCode on Windows we are going to use Chocolatey.
Note: If you have Python installed on Windows, I suggest you run the following command to verify if you have Chocolatey installed. Python installs Chocolatey to fetch some dependencies.

Читайте также:  Как установить mac os с флешки под windows

Exit fullscreen mode

If it returns the version number, then you’re all set and you can jump directly to FiraCode command. If it doesn’t, then run one of the following commands with administrative permissions to install Chocolatey.

Источник

lucasGabrielDeAA / Installing Fira-Code fonts on linux, and enabling it on VSCode

# To install the Fira Code fonts in the Linux, vis script, create the script ahead, using the editor you desire.
#!/usr/bin/env bash
fonts_dir=»$/.local/share/fonts»
if [ ! -d «$» ]; then
echo «mkdir -p $fonts_dir»
mkdir -p «$«
else
echo «Found fonts dir $fonts_dir»
fi
for type in Bold Light Medium Regular Retina; do
file_path=»$/.local/share/fonts/FiraCode-$.ttf»
file_url=»https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-$.ttf?raw=true»
if [ ! -e «$» ]; then
echo «wget -O $file_path $file_url»
wget -O «$» «$«
else
echo «Found existing file $file_path»
fi;
done
echo «fc-cache -f»
fc-cache -f
# And save with the name you desire, with .sh extension. Example: download_and_save.sh
# Via terminal, open the folder where the script was created, add execution permission to the script and run it, following these steps.
$ chmod +x download_and_save.sh
$ ./download_and_save.sh
# After the script execution, open in the VSCode, the settings.json’s file. Typing Ctrl + shift + P
# Enter `settings`and open the entry with (JSON) specified after.
At the end of the file, add the following lines.
«editor.fontFamily»: «Fira Code»,
«editor.fontLigatures»: true
# To enable Fira Code font and behavior to the VSCode. Save and that’s it.

This comment has been minimized.

Copy link Quote reply

Luryy commented Sep 3, 2020

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.

Источник

Fira code linux install

84 contributors

Users who have contributed to this file

Copy raw contents

Copy raw contents

Fira Code: free monospaced font with programming ligatures

Programmers use a lot of symbols, often encoded with several characters. For the human brain, sequences like -> , or := are single logical tokens, even if they take two or three characters on the screen. Your eye spends a non-zero amount of energy to scan, parse and join multiple characters into a single logical one. Ideally, all programming languages should be designed with full-fledged Unicode symbols for operators, but that’s not the case yet.

Fira Code is a free monospaced font containing ligatures for common programming multi-character combinations. This is just a font rendering feature: underlying code remains ASCII-compatible. This helps to read and understand code faster. For some frequent sequences like .. or // , ligatures allow us to correct spacing.

Fira Code is a personal, free-time project with no funding and a huge feature request backlog. If you love it, consider supporting its development via GitHub Sponsors or Patreon. Any help counts!

What’s in the box?

Left: ligatures as rendered in Fira Code. Right: same character sequences without ligatures.

Fira Code comes with a huge variety of arrows. Even better: you can make them as long as you like and combine start/middle/end fragments however you want!

Fira Code is not only about ligatures. Some fine-tuning is done for punctuation and frequent letter pairs.

Fira Code comes with a few different character variants, so that everyone can choose what’s best for them. How to enable

Being a programming font, Fira Code has fantastic support for ASCII/box drawing, powerline and other forms of console UIs.

Unicode coverage makes Fira Code a great choice for mathematical writing.

How does it look?

Editor compatibility list

Works Doesn’t work
Abricotine Arduino IDE
Android Studio (2.3+, instructions) Adobe Dreamweaver
Anjuta (unless at the EOF) Delphi IDE
AppCode (2016.2+, instructions) Standalone Emacs (workaround)
Atom 1.1 or newer (instructions) Godot (issue)
BBEdit/TextWrangler (v. 11 only, instructions) gVim (Windows workaround)
Brackets (with this plugin) IDLE
Chocolat KDevelop 4
CLion (2016.2+, instructions) Monkey Studio IDE
Cloud9 (instructions) UltraEdit
Coda 2
CodeLite
CodeRunner
CotEditor
Eclipse
elementary Code
Geany (1.37+)
gEdit / Pluma
GNOME Builder
GoormIDE (instructions)
IntelliJ IDEA (2016.2+, instructions)
Kate, KWrite
KDevelop 5+
Komodo
Leafpad
LibreOffice
LightTable (instructions)
LINQPad
MacVim 7.4 or newer (instructions)
Mancy
MATLAB (instructions)
Meld
Mousepad
NeoVim-gtk
NetBeans
Notepad (Windows)
Notepad++ (with a workaround)
Notepad3 (instructions)
Nova
PhpStorm (2016.2+, instructions)
PyCharm (2016.2+, instructions)
QOwnNotes (21.16.6+)
QtCreator
Rider
RStudio (instructions)
RubyMine (2016.2+, instructions)
Scratch
Scribus (1.5.3+)
SublimeText (3146+)
Spyder IDE (only with Qt5)
SuperCollider 3
TextAdept (Linux, macOS)
TextEdit
TextMate 2
VimR (instructions)
Visual Studio (2015+, instructions)
Visual Studio Code (instructions)
WebStorm (2016.2+, instructions)
Xamarin Studio/Monodevelop
Xcode (8.0+, otherwise with plugin)
Xi
Probably work: Smultron, Vico Under question: Code::Blocks IDE

Terminal compatibility list

Platform Works Doesn’t work
macOS Hyper (see #3607)
iTerm 2
Kitty
Terminal.app
ZOC
Alacritty
Windows Hyper (see #3607)
Mintty
Token2Shell
Windows Terminal
Alacritty
Cmder
ConEmu
PuTTY
Windows Console
ZOC
Linux Hyper (see #3607)
Kitty
Konsole
QTerminal
Termux
st (patch)
Alacritty
GNOME Terminal
libvte-based terminals (bug report):
  • gtkterm
  • guake
  • LXTerminal
  • sakura
  • Terminator
  • xfce4-terminal

mate-terminal
rxvt
terminology
xterm

ChromeOS crosh (instructions)
  • IE 10+, Edge Legacy: enable with font-feature-settings: «calt»;
  • Firefox
  • Safari
  • Chromium-based browsers (Chrome, Opera)
  • ACE
  • CodeMirror (enable with font-variant-ligatures: contextual; )

Projects using Fira Code

Free monospaced fonts with ligatures:

Paid monospaced fonts with ligatures:

Building Fira Code locally

In case you want to alter FiraCode.glyphs and build OTF/TTF/WOFF files yourself, this is the setup I use on macOS:

  • Author: Nikita Prokopov @nikitonsky
  • Based on: Fira Mono
  • Inspired by: Hasklig

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.

Источник

muammar / getFirafonts.sh

#! /bin/bash
# # cf from http://programster.blogspot.com/2014/05/ubuntu-14-desktop-install-fira-sans-and.html
cd /tmp
# install unzip just in case the user doesn’t already have it.
if [[ ` uname ` = Linux ]] ; then
sudo apt-get install unzip -y
wget » http://www.carrois.com/downloads/fira_4_1/FiraFonts4106.zip «
wget » http://www.carrois.com/downloads/fira_mono_3_2/FiraMonoFonts3206.zip «
unzip FiraSans4106.zip
unzip FiraMono3206.zip
sudo mkdir -p /usr/share/fonts/truetype/FiraSans
sudo mkdir -p /usr/share/fonts/opentype/FiraSans
sudo cp Fira * /WEB/ * .ttf /usr/share/fonts/truetype/FiraSans/
sudo cp Fira * /OTF/Fira * /usr/share/fonts/opentype/FiraSans/
sudo fc-cache -fv
else
wget https://github.com/mozilla/Fira/archive/4.202.zip
unzip 4.202.zip
font_dir= » $HOME /Library/Fonts «
mkdir -p $font_dir
cp Fira-4.202/otf/ * $font_dir /
fi

This comment has been minimized.

Copy link Quote reply

naeramarth7 commented Sep 10, 2016

Using brew cask , this would be:

This comment has been minimized.

Copy link Quote reply

jocubeit commented Apr 20, 2017

This comment has been minimized.

Copy link Quote reply

mervick commented Sep 4, 2017

This comment has been minimized.

Copy link Quote reply

sturmenta commented Oct 18, 2018

This comment has been minimized.

Copy link Quote reply

awwsmm commented Oct 23, 2018

brew cask install \ font-fira-code \ font-fira-mono \ font-fira-mono-for-powerline \ font-fira-sans

Perfect! I’ll also mention that if you get an error like

This comment has been minimized.

Copy link Quote reply

amacfie commented Nov 17, 2018

This comment has been minimized.

Copy link Quote reply

caph1993 commented Jan 28, 2019

This comment has been minimized.

Copy link Quote reply

arvi1000 commented May 22, 2019

The brew method posted by @naeramarth7 worked well for me on OS X. Thx

This comment has been minimized.

Copy link Quote reply

chenzhihao commented Nov 14, 2019

Using brew cask , this would be:

caskroom/fonts was moved. Tap homebrew/cask-fonts instead.

This comment has been minimized.

Copy link Quote reply

gravityrahul commented Dec 2, 2019

Looks like the brew has issues
$brew tap caskroom/fonts
Error: caskroom/fonts was moved. Tap homebrew/cask-fonts instead.
$brew tap caskroom/cask-fonts
Error: caskroom/cask-fonts was moved. Tap homebrew/cask-cask-fonts instead.
$brew tap caskroom/cask-cask-fonts
Error: caskroom/cask-cask-fonts was moved. Tap homebrew/cask-cask-cask-fonts instead.
$brew tap caskroom/cask-cask-cask-fonts
Error: caskroom/cask-cask-cask-fonts was moved. Tap homebrew/cask-cask-cask-cask-fonts instead.
$brew tap caskroom/cask-cask-cask-cask-fonts
Error: caskroom/cask-cask-cask-cask-fonts was moved. Tap homebrew/cask-cask-cask-cask-cask-fonts instead.

Oh come on Brew are you kidding me .

This comment has been minimized.

Copy link Quote reply

rajithsam commented Dec 13, 2019

@gravityrahul Try brew tap homebrew/cask-fonts

This comment has been minimized.

Copy link Quote reply

dnnp2011 commented Dec 31, 2019

Using brew cask , this would be:

As of Dec 31, 2019 the new Fira Code font cask is:

This comment has been minimized.

Copy link Quote reply

FDiskas commented Mar 4, 2020

Not officially supported, might install outdated version

This comment has been minimized.

Copy link Quote reply

wfz0755 commented Jan 16, 2021

Very useful script! Thank you so much!

This comment has been minimized.

Copy link Quote reply

latavin243 commented Jan 27, 2021

As of Jan 27, 2021 brew cask install is disabled, use brew install —cask instead.

Источник

Читайте также:  Приложение для паролей windows phone
Оцените статью