# Use Font Awesome 3.2.0 on Debian Wheezy

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?

## 2 Answers

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}


• That's beautiful, thanks! I put the downloaded font awesome folder in ~/.fonts (plural). – Matthias Braun Mar 2 '16 at 15:16
1. Download the latest FontAwesome.otf from the repo and put it in ~/texmf/tex/latex/fontawesome-custom.

2. Create ~/texmf/tex/latex/fontawesome-custom/fontawesome.sty with this content:

\ProvidesPackage{fontawesome-custom}[2015/01/12 My local customizations to the fontawesome package]
\RequirePackage{fontawesome} % load the package we're modifying

\expandafter\def\csname faicon@stackexchange\endcsname      {\symbol{"F16C}}  \def\faStackOverflow     {{\FA\csname faicon@stackexchange\endcsname}}


If you want to add a different new icon, have a look here and here.

You can use the icon like this in your tex file:

\documentclass{moderncv}
\usepackage{fontawesome-custom}

\moderncvstyle{classic}
\moderncvcolor{green}

\title{CV}

% Contact data
\firstname{Matthias}\lastname{Braun}
\extrainfo{\httplink[\faStackOverflow~Stack Overflow: Matthias Braun]{stackoverflow.com/users/775954/matthias-braun}}

\begin{document}
\makecvtitle

\section{Job experience}
\cventry{March 2013}{Trip to the moon}{}{}{}{}{}

\end{document}


Compiling with lualatex or xelatex produces this:

• Welcome to TeX.SX! Quick self-answer? ;-) – user31729 Jan 12 '15 at 15:57
• Sorry to bother you again Matthias... :-) Modifying a file managed by a Package Manager is not the best idea. A better way would be to make your own local package containing the customizations. You can see an example of how to do that here. – Paul Gessler Jan 12 '15 at 16:03
• Or you can install the modified and renamed copy of the .sty into TEXMFHOME, and put the updated font either there or in ~/.fonts. Note that the package is LPPL which means you definitely should rename it if modifying it, in any case. – cfr Jan 12 '15 at 16:51
• Thanks for your suggestions. I adapted the answer accordingly. – Matthias Braun Jan 12 '15 at 17:38