2

Consider the following minimal example:

% !TEX program = xelatex
\documentclass{article}

\usepackage{fontawesome}

\begin{document}
\faTwitter{} Some Text \faLinkedin
\end{document}

On my MacTeX 2016 basic system (up to date), the icons are missing in the PDF and I get the following error message:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
/usr/local/texlive/2016basic/texmf-dist/tex/latex/fontawesome/fontawesome.sty:45: fontspec error: "font-not-found"
! 
! The font "FontAwesome" cannot be found.
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.
!...............................................

The example does work when I change the engine to

% !TEX program = latex

or

% !TEX program = luatex

I don't have the font installed on my system because according to the documentation the package should use the font bundled with the package (which obviously works with latex and luatex, but not with xelatex).

9

1 Answer 1

1

As already mentioned here, all I had to do to get it to work with xelatex was install the FontAwesome font on my machine (e.g. by downloading it from here and installing the file FontAwesome.otf).

Not the answer you're looking for? Browse other questions tagged .