xdanaux / fontawesome-latex

LaTeX mappings for Font Awesome, the icons font
307 stars 36 forks source link

Error caused by `\defaultfontfeatures{Scale=MatchLowercase}` #5

Open xu-cheng opened 8 years ago

xu-cheng commented 8 years ago

Minimal example:

\documentclass{article}
\usepackage{fontspec}
\defaultfontfeatures{Scale=MatchLowercase}
\usepackage{fontawesome}
\begin{document}
test
\end{document}

Output:

$ lulatex main.tex
This is LuaTeX, Version 0.95.0 (TeX Live 2016)                                               [29/636]
 restricted system commands enabled.
(./main.tex
LaTeX2e <2016/03/31>
Babel <3.9r> and hyphenation patterns for 1 language(s) loaded.
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/size10.clo))
(/usr/local/texlive/2016/texmf-dist/tex/latex/fontspec/fontspec.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/l3kernel/expl3.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
(/usr/local/texlive/2016/texmf-dist/tex/latex/l3kernel/l3pdfmode.def))
(/usr/local/texlive/2016/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(/usr/local/texlive/2016/texmf-dist/tex/luatex/luaotfload/luaotfload.sty(using
write cache: /Users/xucheng/Library/texlive/2016/texmf-var/luatex-cache/generic
)(using read cache: /usr/local/texlive/2016/texmf-var/luatex-cache/generic /Use
rs/xucheng/Library/texlive/2016/texmf-var/luatex-cache/generic)
luaotfload | main : initialization completed in 0.134 seconds)
(/usr/local/texlive/2016/texmf-dist/tex/latex/fontspec/fontspec-luatex.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/base/fontenc.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/euenc/eu2enc.def)
(/usr/local/texlive/2016/texmf-dist/tex/latex/euenc/eu2lmr.fd)(compiling luc: /
usr/local/texlive/2016/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-regul
ar.luc)(load luc: /Users/xucheng/Library/texlive/2016/texmf-var/luatex-cache/ge
neric/fonts/otl/lmroman10-regular.luc))
(/usr/local/texlive/2016/texmf-dist/tex/xelatex/xunicode/xunicode.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/tipa/t3enc.def(compiling luc: /us
r/local/texlive/2016/texmf-var/luatex-cache/generic/fonts/otl/lmromanslant10-re
gular.luc)(load luc: /Users/xucheng/Library/texlive/2016/texmf-var/luatex-cache
/generic/fonts/otl/lmromanslant10-regular.luc)(compiling luc: /usr/local/texliv
e/2016/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-italic.luc)(load luc:
 /Users/xucheng/Library/texlive/2016/texmf-var/luatex-cache/generic/fonts/otl/l
mroman10-italic.luc)(compiling luc: /usr/local/texlive/2016/texmf-var/luatex-ca
che/generic/fonts/otl/lmroman10-bold.luc)(load luc: /Users/xucheng/Library/texl
ive/2016/texmf-var/luatex-cache/generic/fonts/otl/lmroman10-bold.luc)
(/usr/local/texlive/2016/texmf-dist/tex/latex/euenc/eu2lmss.fd)(compiling luc:
/usr/local/texlive/2016/texmf-var/luatex-cache/generic/fonts/otl/lmsans10-regul
ar.luc)(load luc: /Users/xucheng/Library/texlive/2016/texmf-var/luatex-cache/ge
neric/fonts/otl/lmsans10-regular.luc))
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/graphics.sty
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics/trig.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(/usr/local/texlive/2016/texmf-dist/tex/lualatex/luatex-def/luatex.def
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)))))
(/usr/local/texlive/2016/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(/usr/local/texlive/2016/texmf-dist/tex/latex/fontawesome/fontawesome.sty
(/usr/local/texlive/2016/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(/usr/local/texlive/2016/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(/usr/local/texlive/2016/texmf-dist/tex/latex/fontawesome/fontawesomesymbols-ge
neric.tex)(compiling luc: /usr/local/texlive/2016/texmf-var/luatex-cache/generi
c/fonts/otl/fontawesome.luc)(load luc: /Users/xucheng/Library/texlive/2016/texm
f-var/luatex-cache/generic/fonts/otl/fontawesome.luc)
! Undefined control sequence.
<argument> ...font }\rmfamily \l_fontspec_font \int_case:nnn
                                                  5{{5}{x}{8}{X}}{?}
l.45 \newfontfamily{\FA}{FontAwesome}

? 
ChannelJuanNews commented 7 years ago

I have this same issue. Did you find a fix?