0

I'm trying to compile a motivation letter, for which I used the awesome LaTex template. I've just opened the .tex file and compiled it: no way, it doesn't compile, I get the following error:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
./fontawesome.sty:12: fontspec error: "font-not-found"
! 
! The font "FontAwesome" cannot be found.
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.
!...............................................

l.12 \newfontfamily{\FA}{FontAwesome}

Well, if you download the template you'll see it's full of files and so on, so I tried to simplify: I got that the problem was with these icons, so I went to this basic page talking about this, and I copy-pasted the following code:

\documentclass[border=0.1cm]{standalone}

\usepackage{fontawesome5}

\begin{document} This is an example of an open folder with a \verb|regular| style: \faIcon[regular]{folder-open} \end{document}

and (always using XeLaTex) I got the same error. I'm using a 2021 Mac, with latest version of TexShop and 2021 Tex Live.

Joe
  • 101
  • Since you are on Mac, have you seen https://tex.stackexchange.com/a/132893/119 ? The answer suggests that with XeLaTeX you need to make sure that the OS knows about the font, and this can be done by opening the font in FontBook and "installing" it. (I am assuming that the last sentence makes more sense to a Mac user than it does to me.) – Willie Wong Jul 13 '21 at 03:33
  • 1
    @Joe The code you showed can't generate the same error message. (The message comes from the fontawesome package, not from fontawesome5) For fontawesome this is a known issue in XeLaTeX and you can follow Willie Wong's comment, but if the fontawesome5 document doesn't work than there is something else wrong. I can't say more without seeing the actual error message. – Marcel Krüger Jul 13 '21 at 03:40
  • @Joe, is this question still open, or is it resolved? – MS-SPO Aug 13 '21 at 17:48
  • @MS-SPO: a colleague of mine solved. But I don't know how, so putting an answer would be great both for me and for other users having the same issue, I guess – Joe Aug 14 '21 at 09:58
  • @Joe Getting an answer first requires to know which error you got and especially which of the two packages you are actually asking about. – Marcel Krüger Aug 14 '21 at 10:13
  • @Joe, Ok, but who can and should do it? Besides the info that was just requested from you, perhaps your colleague can note down his solution? Thanks – MS-SPO Aug 14 '21 at 11:16

0 Answers0