Open yudai-nkt opened 6 years ago
Please merge it. I had the same issue with this package and had to create my own "fixed" version of it.
@dropsonic FYI: You can give a try to fontawesome5
if you don't like putting the fixed fork in your TEXMFHOME
or TEXMFLOCAL
. I don't really look into the package, but at least
\documentclass{article}
\usepackage{fontawesome}
\begin{document}
\faAdjust
\end{document}
works well with XeLaTeX.
TL;DR: XeTeX cannot load fonts in TEXMF tree by their font name whereas LuaTeX can. Therefore we need to specify FontAwesome by file name so that both XeTeX and LuaTeX can load it.
Consider the following MWE:
While this MWE works with LuaLaTeX, it doesn't with XeLaTeX issuing the following error:
The reason for this pretty easy; it's clearly described in the fontspec documentation. Here is an excerpt from section 5.2 of v2.6d:
There are several ways to load fonts by file name, and I specified the extension
.otf
in the optional argument because this is convenient when we load bold and italic variants of a font (FontAwesome doesn't have variants, though).Fix #12.