posquit0 / Awesome-CV

:page_facing_up: Awesome CV is LaTeX template for your outstanding job application
LaTeX Project Public License v1.3c
23.03k stars 4.79k forks source link

! fontspec error: "font-not-found" #181

Closed ooker777 closed 2 years ago

ooker777 commented 6 years ago

All the seemingly used fonts are not found, though I've installed them. One example error is:

! fontspec error: "font-not-found"
! 
! The font "Roboto-Thin" cannot be found.
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.

I use Windows 10, MiKTeX.

ivanbistrovic commented 6 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.

bkolada commented 6 years ago

I had the same problem with font awesome and installing font in the system was enough.

cbarrick commented 6 years ago

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.

johannesbottcher commented 6 years ago

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 .

niranjantdesai commented 6 years ago

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.

77QingLiu commented 6 years ago

same issue

77QingLiu commented 6 years ago

@cbarrick , Still get the error after remove line 12 in my case.

77QingLiu commented 6 years ago

My issue has been removed by moving the fonts folder under the examples folder. I think this should solve your problem too.

inmybrain commented 5 years ago

I had the same problem, and this worked for me.

cbarrick commented 5 years ago

I've got an updated PR with the fix in #262, but I'm not sure @posquit0 is interested in reviewing new PRs...

Berkmann18 commented 5 years ago

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 }}

abuck2 commented 4 years ago

@johannesbottcher Isn't it licensed under CC-BY-SA? I don't see the problem in modifying the file, or am I missing something?

Daisy1111 commented 3 years ago

My issue has been removed by moving the fonts folder under the examples folder. I think this should solve your problem too.

This way works for me too!! Amazing!