ravijo / Awesome-CV

:page_facing_up: Awesome CV is LaTeX template along with .bib formatting support
15 stars 2 forks source link

"FontAwesome" not found in example #5

Open kewiechecki opened 2 years ago

kewiechecki commented 2 years ago

When I try to run the example I get the following error:

kpathsea: Running mktextfm FontAwesome
/usr/local/texlive/2021/texmf-dist/web2c/mktexnam: Could not map source abbreviation F for FontAwesome.
/usr/local/texlive/2021/texmf-dist/web2c/mktexnam: Need to update /usr/local/texlive/2021/texmf-dist/fonts/map/fontname/special.map?
mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input FontAwesome
This is METAFONT, Version 2.71828182 (TeX Live 2021) (preloaded base=mf)

kpathsea: Running mktexmf FontAwesome
! I can't find file `FontAwesome'.
<*> ...r; mag:=1; ; nonstopmode; input FontAwesome

Please type another input file name
! Emergency stop.
<*> ...r; mag:=1; ; nonstopmode; input FontAwesome

Transcript written on mfput.log.
grep: FontAwesome.log: No such file or directory
mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; ; nonstopmode; input FontAwesome' failed to make FontAwesome.tfm.

I still have this problem even after commenting out all refer I'm using XeTeX Version 3.141592653-2.6-0.999993 (TeX Live 2021) on Ubuntu 20.04.

Edit: This issue appears related to https://github.com/posquit0/Awesome-CV/pull/191. It seems to be a combination of broken font installations and xelatex trying to access fonts from the system rather than the fonts directory in the template. I was able to work around it by commenting out the lines

\newfontfamily{\FA}{FontAwesome}

and

\newfontfamily{\FA}{Academicons}
\setfontfamily{\AI}{Academicons}

from awesome-cv.cls, then adding

\setfontfamily\FA[Path=\@fontdir]{Academicons}

to awesome-cv.cls.