Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add install instruction #4

Closed
ai opened this issue Jan 8, 2015 · 27 comments
Closed

Add install instruction #4

ai opened this issue Jan 8, 2015 · 27 comments

Comments

@ai
Copy link

ai commented Jan 8, 2015

At least for Mac, Ubuntu and Fedora

@ai
Copy link
Author

ai commented Jan 8, 2015

/cc @tonsky

@ai
Copy link
Author

ai commented Jan 8, 2015

Linux way:

mkdir -p ~/.fonts/
wget https://github.com/tonsky/FiraCode/raw/master/FiraCode-Regular.otf -O ~/.fonts/FiraCode-Regular.otf
fc-cache -v

@tonsky
Copy link
Owner

tonsky commented Jan 8, 2015

Well, for Mac you just double-click it. Didn’t know using fonts is non-trivial on Linux

@turbohz
Copy link

turbohz commented May 6, 2015

On Ubuntu you just double click and the gnome font viewer pops up. It has an install button.

@tonsky
Copy link
Owner

tonsky commented Aug 9, 2015

Closing this as it is super trivial

@tonsky tonsky closed this as completed Aug 9, 2015
@tiagoantao
Copy link

Depending on the version of Ubuntu this might not be completely trivial, for example on xubuntu @ai instructions are needed (double click not enough).

@engelfrost
Copy link

I have issues updating the font in Ubuntu. Ubuntu thinks Fira Code is already installed and doesn't care about the version. I have to replace the font files in ~/.local/share/fonts/ (or remove them, and install the new files by clicking on them).

@vyp
Copy link

vyp commented Jan 11, 2016

@engelfrost fc-cache -fv, or fc-cache -rv?

@tonsky
Copy link
Owner

tonsky commented Jan 11, 2016

I’m not sure how I can put that together into something useful. Looks like
everyone on linux has different experience and their own set of hacks that
work for them and their setup but for other people. Ideas?

On Mon, Jan 11, 2016 at 5:45 PM vyp [email protected] wrote:

@engelfrost https://github.com/engelfrost fc-cache -fv, or fc-cache -rv?


Reply to this email directly or view it on GitHub
#4 (comment).

@vyp
Copy link

vyp commented Jan 11, 2016

@tonsky put what together? Anyway, honestly, installing fonts is very easy. Just place them in .fonts and run fc-cache -f.

@vyp
Copy link

vyp commented Jan 11, 2016

Actually, the more correct place is ~/.local/share/fonts, or more technically $XDG_DATA_HOME/fonts.

@tiagoantao
Copy link

There is a lot of variety indeed, but I suspect that

  • mkdir ~/.fonts
  • Put your fonts in that directory
  • fc-cache -f

Will cover the vast majority of cases. There might be alternatives, but this is the least common denominator

@tonsky
Copy link
Owner

tonsky commented Jan 15, 2016

Added a page to the wiki

@booc0mtaco
Copy link

@tonsky Apparently you can also install Fira Code via https://github.com/caskroom/homebrew-fonts on mac. Is this something you keep up to date, or is there some anonymous hero that did that?

command to install appears to be brew cask install font-fira-code

@tonsky
Copy link
Owner

tonsky commented Feb 7, 2016

No, it wasn’t me

On Thu, Feb 4, 2016 at 3:17 AM Andrew Holloway [email protected]
wrote:

@tonsky https://github.com/tonsky Apparently you can also install Fira
Code via https://github.com/caskroom/homebrew-fonts on mac. Is this
something you keep up to date, or is there some anonymous hero that did
that?

command to install appears to be brew cask install font-fira-code


Reply to this email directly or view it on GitHub
#4 (comment).

@jacqueline-homan
Copy link

jacqueline-homan commented Jan 4, 2017

@tonsky Hi, just saw this comment thread about installing your really cool font with the ligatures when I was hunting for installation on Linux instructions because I wanted to use it w/ F# in VS Code, and see how well it would also work in Sublime (which I use for Haskell) as well. I'm on a Debian 8 desktop (my primary dev machine) and I would like to say that installing fonts is not trivial.

What works for Ubuntu does not always work for Debian. So what I will do is attempt the install on Debian, and then also on my second desktop which has the Arch Linux OS. If I am able to succeed in installing the Fira Code font in both of those Linux distros, I would like to contribute a "how to" for others' benefit either on your repo or on your wiki page for Fira Code, including what to do when you run into an installation and run problem.

@kwmiebach
Copy link

One way to do it on Debian 8. As root:

apt install git # skip this if you have git installed
cd /usr/share/fonts # system wide fonts
git clone --depth 1 https://github.com/tonsky/FiraCode.git # get only the last commit of the master branch 
cd FiraCode
git filter-branch --subdirectory-filter distr # This keeps only the contents of the distr/ directory and moves its contents one level up.
fc-cache -f -v

@sainaen
Copy link
Contributor

sainaen commented Mar 23, 2017

By the way, starting from September, one can just install fonts-firacode package from the Stretch (current testing) contrib repo. (And even if you're on stable, it doesn't have any dependencies.) It will also be available in Ubuntu 17.04 (Zesty.)
So yeah, no more manual installs! 🎉

@pat-s
Copy link

pat-s commented Jul 21, 2017

the latest comment should be placed more prominently in the README 👍

@sainaen
Copy link
Contributor

sainaen commented Jul 21, 2017

@tonsky
Now that both Stretch and Zesty are released, would it be ok if I add instructions for them to the “Installing font” section? It's trivial, just apt install fonts-firacode, but you have to remember to enable contrib/universe repositories first; plus currently wiki seem to suggest that there's only manual installation for Linux users which isn't true anymore.

Something like this:
-Linux: 
+Linux — Debian 9 / Ubuntu 17.04 or newer:
+
+- make sure that `contrib` (for Debian) or `universe` (Ubuntu) repository is enabled (enabling `non-free` / `multiverse` isn't required)
+- install `fonts-firacode` package, with either `apt` (`sudo apt install fonts-firacode`) or other package manager
+
+Linux — Manual installation:
+
 - in the ttf folder, double-click each font file, click “Install font”

@dhouck
Copy link

dhouck commented Jul 21, 2017

Would you also want to add AUR instructions for Arch? It might be better to have a list of distributions where it’s available through usual package management channels which could look like:

  • Debian (in the contrib repository)
  • Ubuntu (in the universe repository)
  • Arch (available in the AUR)

@sainaen
Copy link
Contributor

sainaen commented Jul 21, 2017

I opened a separate issue #456, so not to bother all subscribers to this one. Let's continue there.

@dhruvdutt
Copy link

dhruvdutt commented Nov 2, 2017

mkdir -p ~/.fonts/
wget https://github.com/tonsky/FiraCode/raw/master/distr/otf/FiraCode-Regular.otf -O ~/.fonts/FiraCode-Regular.otf
fc-cache -v

@0xabu
Copy link

0xabu commented Nov 16, 2017

Correction:

mkdir -p ~/.fonts
wget https://github.com/tonsky/FiraCode/raw/master/distr/otf/FiraCode-Regular.otf -O ~/.fonts/FiraCode-Regular.otf
fc-cache -v

Note raw in the URL, to get the actual OTF file.

@maxaqquepucho
Copy link

no logro agregar fira code en Ubuntu 18.04 lts en el editor de atom .. alguien puede ayudarme porvafor?

@tonsky
Copy link
Owner

tonsky commented Aug 5, 2018

@dz-s
Copy link

dz-s commented Aug 19, 2018

@tonsky On Ubuntu 14.04 doesn't work (can't find package even if 'universe' repo is enabled).
@dhruvdutt works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests