Closed ooker777 closed 2 years ago
Just using \usepackage{fontspec} is not going to be enough in case you want to use custom fonts. If you use the example Latex templates provided within this project you don't have to use fontspec.
I had the same problem with font awesome and installing font in the system was enough.
Installing the font system wide is a hack. I think I've fixed it though. You just have to delete line 12 from fontawesome.sty
. I.e. delete this:
% Define shortcut to load the Font Awesome font.
\newfontfamily{\FA}{FontAwesome}
This works because the font family is defined properly in awesome-cv.cls
already.
You cannot just change a copyrighted file. Also, installing a font system wide is not a hack.
Am 06.02.2018 03:25 schrieb "Chris Barrick" notifications@github.com:
Installing the font system wide is a hack. I think I've fixed it though. You just have to delete line 12 from fontawesome.sty. I.e. delete this:
% Define shortcut to load the Font Awesome font. \newfontfamily{\FA}{FontAwesome}
This works because the font family is defined properly in awesome-cv.cls already.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/posquit0/Awesome-CV/issues/181#issuecomment-363289393, or mute the thread https://github.com/notifications/unsubscribe-auth/AH4EjpX8RTFAuVWLkTX-HBkrrBy9pB3eks5tR7gCgaJpZM4RMf8T .
Check the font directory in the source files. If the style files are in the "examples" folder, fontdir should be ../fonts/ in the main .tex file as well as awesome-cv.cls
.
same issue
@cbarrick , Still get the error after remove line 12 in my case.
My issue has been removed by moving the fonts folder
under the examples folder
. I think this should solve your problem too.
I've got an updated PR with the fix in #262, but I'm not sure @posquit0 is interested in reviewing new PRs...
Installing the font system wide is a hack. I think I've fixed it though. You just have to delete line 12 from
fontawesome.sty
. I.e. delete this:% Define shortcut to load the Font Awesome font. \newfontfamily{\FA}{FontAwesome}
This works because the font family is defined properly in
awesome-cv.cls
already.
That alongside commenting out l.14-16, helped getting the FA icons to show up.
\newcommand*{\faicon}[1]{{ \FA\csname faicon@#1\endcsname }}
@johannesbottcher Isn't it licensed under CC-BY-SA? I don't see the problem in modifying the file, or am I missing something?
My issue has been removed by moving the
fonts folder
underthe examples folder
. I think this should solve your problem too.
This way works for me too!! Amazing!
All the seemingly used fonts are not found, though I've installed them. One example error is:
I use Windows 10, MiKTeX.