I am trying to use fontawesome5
with the pro option, hence also with XeLaTeX, and it is a little strange. Consider the following minimal example
\documentclass{scrartcl}
\usepackage{xunicode,fontspec,xltxtra,refcount,amsmath,amssymb,amsthm}
\usepackage[pro]{fontawesome5}%
\faStyle{light}
\begin{document}
\faIcon{globe}
\end{document}
It takes quite a while to run (MacOS TeXlive 2018), this takes even far longer with more icons and produces an error (for more icons more errors) like
kpathsea:make_tex: Invalid filename `FontAwesome5ProSolid:script=latn;', contains ':'
Latex Error: /usr/local/texlive/2018/texmf-dist/tex/latex/fontawesome5/fontawesome5-utex-helper.sty:59 Font TU/fontawesomepro/solid/n/10.95=FontAwesome5ProSolid:script=latn; at 10.95pt not loadable: Metric (TFM) file or installed font not found.
relax
l.59 ...ze_font:nn{\c__fontawesome_kind_tl}{solid}
and sometimes (not completely reproducible/not appearing every time)
!
! The font "FontAwesome" cannot be found.
!
! See the fontspec documentation for further information.
!
! For immediate help type H .
!...............................................
l.45 \newfontfamily{\FA}{FontAwesome}
But though the compilation then takes quite a wile (for my larger file with 6 icons 5 minutes, the small one above maybe 30 seconds) – a PDF is created that looks fine and as expected.
What's happening there? For me it looks like, though running XeLaTeX it's trying some pdflatex-fun?
pro
option being a problem, since the above MWE works with\usepackage{fontawesome5}
and\faStyle{regular}
fontawesome5
pdf). What surprises me the most is, that it still works and even takes thelight
style.FontAwesome5FreeSolid
, which are installed by the package itself! See ctan.org/tex-archive/fonts/fontawesome5/opentype