在 XeLaTeX 中使用類別和特定字體會引發錯誤

在 XeLaTeX 中使用類別和特定字體會引發錯誤

我正在嘗試使用有它自己的類別和我找到的字體另一個 stackexchange 站點

這是一個最小的工作範例,Roboto字體位於同一資料夾中名為 的子目錄中Roboto。其內容a.tex為:

\documentclass[]{b}
\begin{document}
some text
\end{document}

的內容b.cls是:

\LoadClass{article}
\RequirePackage[quiet]{fontspec}
\setmainfont[Mapping=tex-text, Color=textcolor]{Roboto/Roboto-Light.ttf}

然後我就跑

xelatex a.tex

並得到以下錯誤:

LaTeX Font Warning: Font shape `EU1/Roboto/Roboto-Light.ttf(0)/m' undefined
(Font)              using `EU1/lmr/m/n' instead on input line 2.

! Missing number, treated as zero.
<to be read again> 
                   n
l.2 ..., Color=textcolor]{Roboto/Roboto-Light.ttf}

任何人都可以幫我解決這個問題嗎?

我使用 Debian Wheezy 並使用 texlive 2013

相關內容