[Tex/LaTex] FontAwesome 4.2.0 problem

fontawesome

Introduction

I'm using updated TeXlive 2014 and the fontawesome package version is 3.1.1.

The newest version of FontAwesome font is 4.2.0 and it contains icons for Linux and StackExchange.

So I downloaded the bundle from here and just replace the FontAwesome.otf in

/usr/local/texlive/2014/texmf-dist/fonts/opentype/public/fontawesome

After that I run texhash.

The code

I have a (huge) tex file with a lot of material and also the code

\def\faSkype{{\FA\symbol{"F17E}}}
\def\faSE{{\FA\symbol{"F18D}}}
\def\faLinux{{\FA\symbol{"F17C}}}

It compiles with no error and the PDF output is OK, as we can see below.

enter image description here

The problem

I have no idea why the MWE below does not work. The same problem without fontspec.

\documentclass{report}

\usepackage{fontawesome}
\usepackage{fontspec}

\def\faLinux{{\FA\symbol{"F17C}}}
\def\faSE{{\FA\symbol{"F18D}}}
\def\faSkype{{\FA\symbol{"F17E}}}

\begin{document}
Linux icon: \faLinux

StackExchange icon: \faSE


Skyp icon: \faSkype
\end{document}

lualatex on the code above produces (icons missing)

enter image description here

I found here in TeX.SE a lot of topics but that solutions didn't work for me. I'd deleted the system font installed version.

Best Answer

Maybe a temporary fix would be to work locally with the latest FontAwesome version. Grab the latest version of the font at http://fortawesome.github.io/Font-Awesome/ and copy the file named "fontawesome-webfont.ttf" in a sub-folder named "fonts" (or any other name) of your LaTex document location. Then, instead of passing through the fontawesome package, you can load and use the font manually like this (based on the MWE you provided):

\documentclass{report}

\usepackage{fontspec}

\newfontfamily{\FA}[Path = fonts/]{fontawesome-webfont}

\def\faLinux{{\FA\symbol{"F17C}}}
\def\faSE{{\FA\symbol{"F18D}}}
\def\faSkype{{\FA\symbol{"F17E}}}
\def\github{{\FA\symbol{"F092}}}

\begin{document}

\noindent
Linux icon: \faLinux \\
StackExchange icon: \faSE \\
GitHub icon: \github \\
Skype icon: \faSkype

\end{document}

Here is the output I get for this MWE:

enter image description here

It doesn't solve your problem globally for your system though... LuaLatex is probably grabbing an older version of the font package along the way that override the new one you've installed.