-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix the fontspec error about \newfontfamily #236
Conversation
Fixes Compilation Error when commenting out the \newfont: xdvipdfmx:fatal: pdf_ref_obj(): passed invalid object. As well als the Compilation Error: LaTeX3 Error: Command '\FA' already defined!For immediate help type H <return>. Fixes posquit0#221 by unsetting /FA before redefining it. In Contrary to other Pull Reqests posquit0#233 posquit0#235 and posquit0#236 i found, fontawsome works with this change. Tested with MikTex on Windows.
@@ -9,7 +9,7 @@ | |||
\usepackage{fontspec} | |||
|
|||
% Define shortcut to load the Font Awesome font. | |||
\newfontfamily{\FA}{FontAwesome} | |||
\newfontfamily{\FA}{FontAwesome.otf} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to work, but I think this should be ttf to correspond to the font file
\newfontfamily{\FA}{FontAwesome.otf} | |
\newfontfamily{\FA}{FontAwesome.ttf} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't otf format have more features than ttf? Having that in mind, otf would be the best choice if we add the corresponding file
@@ -9,7 +9,7 @@ | |||
\usepackage{fontspec} | |||
|
|||
% Define shortcut to load the Font Awesome font. | |||
\newfontfamily{\FA}{FontAwesome} | |||
\newfontfamily{\FA}{FontAwesome.otf} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't otf format have more features than ttf? Having that in mind, otf would be the best choice if we add the corresponding file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All right!
if this problem is resolved should the request be close? |
Fixes Compilation Error when commenting out the \newfont: xdvipdfmx:fatal: pdf_ref_obj(): passed invalid object. As well als the Compilation Error: LaTeX3 Error: Command '\FA' already defined!For immediate help type H <return>. Fixes posquit0#221 by unsetting /FA before redefining it. In Contrary to other Pull Reqests posquit0#233 posquit0#235 and posquit0#236 i found, fontawsome works with this change. Tested with MikTex on Windows.
Thank you - I think many of us have made this or similar fixes over the years as posquit0's had other priorities. I have push access now to help maintain Awesome-CV; so I went with my old PR for this (#235/#344) for no reason other than my own familiarity, that I know it's been working for me. Please do ping me/open another PR if something's still not right or I missed something though! Cheers. |
Fix the fontspec error below; replace to
\newfontfamily{\FA}{FontAwesome.otf}
When compiling in local Tex (not Overleaf), this extension should be specified like this commit.