Skip to content
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

FontAwesome and Xelatex #12

Open
kaba2 opened this issue Nov 24, 2016 · 1 comment
Open

FontAwesome and Xelatex #12

kaba2 opened this issue Nov 24, 2016 · 1 comment

Comments

@kaba2
Copy link

kaba2 commented Nov 24, 2016

The following does not work in XeLaTeX on the current MiKTeX version:

\documentclass[border=10pt, multi]{standalone}
\usepackage{fontawesome}
\standaloneenv{sym}
\begin{document}
\begin{sym}\faUserPlus\end{sym}
\end{document}

XeLaTex stops on the following error:

xdvipdfmx:warning: Invalid CMap
xdvipdfmx:fatal: pdf_ref_obj(): passed invalid object.
Output file removed.

The symbol itself is not relevant; the example does not work on most symbols. This has recently been discussed here by someone else. There a workaround is given to insert the following before \usepackage{fontawesome}:

\usepackage{fontspec}
\defaultfontfeatures{Extension = .otf}

I don't know if this is a bug, but it is certainly confusing, because there is no hint on how to fix the problem.

yudai-nkt added a commit to yudai-nkt/fontawesome-latex that referenced this issue Aug 25, 2017
@yudai-nkt
Copy link

Hi @kaba2, I've encountered the same issue (I don't think it's an xdvipdfmx matter as XeLaTeX can't even produce XDV files). This is indeed a bug of this package and I submitted a pull request that fixes this. A small explanation behind the error is also in the PR.

If you are still interested in this problem, you can try my search-xelatex branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants