[Tex/LaTex] Install Fira Sans Font using Texlive 2012

beamerfontsgitinstallingxetex

I would like to create slides using this theme for Beamer but am having trouble getting it to work. I just copied the .sty files into /home/gthomson/texmf/tex/latex/mtheme.

However the theme requires the Fira font and links to another site where I downloaded this font. However I did not know where to put it so I copied the .otf files into home/gthomson/texmf/fonts/opentype/Fira following the advice in this post. But when I try to run the demo .tex file using xelatex I get:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
! fontspec error: "font-not-found"
! 
! The font "Fira Sans Light" cannot be found.
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.
!...............................................

… several times.

How can I get this to work?

Currently I am running Elementary OS "Luna" with Texlive 2012. I looked for a package that already has this font and installed and tried texlive-fonts-extra.

Looking at this post and also the one linked to above it appears that I might need to update the font map files but I do not know what this means or how to do it?

Any help is appreciated

Best Answer

I assume that you use XeLaTeX or luaLaTeX (which are necessary for fontspec).

If this is true, those programs must know which fonts are available on your system. For that you must typefc-cache in a terminal after the installation of the font to update the cache of fontconfig. To verify if the system is aware of the font, you can type, in a terminal something like :fc-list | grep -i fira which should list all the fonts whith "fira" in the name.

I don't know if fontconfig search a font in a personal texmf by default. If this is not the case, you could make a link from .fonts in your personal directory to the Fira directory and run fc-cache to update the cache of fontconfig.