Download the latest FontAwesome.otf
from the repo and put it
in ~/texmf/tex/latex/fontawesome-custom
.
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:
