[Tex/LaTex] Use Font Awesome 3.2.0 on Debian Wheezy

fontsmoderncv

I'd like to use the Stack Overflow icon in moderncv via Font Awesome.

Because the icon was added to Font Awesome in 3.2.0 and the TeX Live distribution on my Debian Wheezy ships with an older version I can't use it.

Is there a way to update Font Awesome manually?

Best Answer

There is a much more easier way.

  1. Download the font from the official site, not the github repo (for some reason it didn't work for me)

  2. Install it in your font folder. In linux, usually under .font

  3. Use fontspec (xetex/lualatex)

  4. Add the following code:

    \newfontfamily{\fontawesome}{FontAwesome}
    
  5. To use the new stackoverflow icon, add:

    {\fontawesome }
    

MWE:

\documentclass{moderncv}

\moderncvstyle{classic}
\moderncvcolor{green}
\usepackage{fontspec}
\newfontfamily{\fontawesome}{FontAwesome}
\title{CV}
\firstname{Matthias}\lastname{Braun}    
\extrainfo{\httplink[{\fontawesome } Stack Overflow: Matthias Braun]{stackoverflow.com/users/775954/matthias-braun}}

\begin{document}
\makecvtitle
\section{Job experience}
\cventry{March 2013}{Trip to the moon and back}{}{}{}{}{}

\end{document}

CV with Awesome Font