w32tex 中的 fontawesome 包

w32tex 中的 fontawesome 包

我想在 w32tex 中使用 fontawesome 包。我从 CTAN 下载了最新版本 (4.4.0 2015-07-30)。我把它 (可能) 放到了正确的位置,并准备了以下简单的源文件:

\documentclass[11pt]{article}
\usepackage{fontspec,fontawesome} 
\begin{document}

\faFlag \faRocket \faTwitter \faCopy

\end{document} 

使用lualatex编译文件后,出现以下错误:

! LuaTeX error ...xmf-dist/tex/luatex/luaotfload/luaotfload-fontloader.lua:5496:
 font loading failed.
<to be read again> 
\scan_stop: 
l.45 \newfontfamily{\FA}{FontAwesome}
?

我想知道问题出在哪里。是不是我把包放到了错误的文件夹中?(每当我想使用新包时,只要将它们放到:w32tex > share > texmf-dist > tex > latex ,它就会起作用)是否还缺少一些包?如果有人能告诉我如何在我的环境中使用 fontawesome 包,即 Windows 8.1 中的 w32tex,我将不胜感激。

谢谢。

答案1

如何在 W32TeX 中安装 fontawesome

(1)重新排列下载的文件,如下所示:

texmf-local/doc/fonts/fontawesome/README.md
texmf-local/doc/fonts/fontawesome/fontawesome.tex
texmf-local/doc/fonts/fontawesome/fontawesome.pdf

texmf-local/fonts/enc/dvips/fontawesome/fontawesomeone.enc
texmf-local/fonts/enc/dvips/fontawesome/fontawesomethree.enc
texmf-local/fonts/enc/dvips/fontawesome/fontawesometwo.enc
texmf-local/fonts/map/dvips/fontawesome/fontawesome.map
texmf-local/fonts/opentype/public/fontawesome/FontAwesome.otf
texmf-local/fonts/tfm/public/fontawesome/FontAwesome--fontawesomethree.tfm
texmf-local/fonts/tfm/public/fontawesome/FontAwesome--fontawesometwo.tfm
texmf-local/fonts/tfm/public/fontawesome/FontAwesome--fontawesomeone.tfm
texmf-local/fonts/type1/public/fontawesome/FontAwesome.pfb

texmf-local/tex/latex/fontawesome/fontawesomesymbols-xeluatex.tex
texmf-local/tex/latex/fontawesome/fontawesomesymbols-generic.tex
texmf-local/tex/latex/fontawesome/fontawesomesymbols-pdftex.tex
texmf-local/tex/latex/fontawesome/fontawesome.sty
texmf-local/tex/latex/fontawesome/ufontawesomeone.fd
texmf-local/tex/latex/fontawesome/ufontawesometwo.fd
texmf-local/tex/latex/fontawesome/ufontawesomethree.fd

(2)运行mktexlsr

(3)运行 updmap --add fontawesome.map

相关内容