# fontawesome package not working with xelatex [duplicate]

Consider the following minimal example:

% !TEX program = xelatex
\documentclass{article}

\usepackage{fontawesome}

\begin{document}
\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).

## marked as duplicate by Jonathan Komar, Stefan Pinnow, Mensch, diabonas, barbara beetonOct 24 '17 at 0:21

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).