\setmainfont 错误

\setmainfont 错误

我正在尝试效仿有关 XeTeX 的 Wikipedia 页面。但是当我运行 TeX 代码时,出现此错误:

(/usr/share/texmf/tex/latex/etex-pkg/etex.sty)
(/usr/share/texmf/tex/latex/base/fixltx2e.sty))kpathsea: Invalid fontname `Linux Libertine O', contains ' '

! Font \zf@basefont="Linux Libertine O" at 10.0pt not loadable: Metric (TFM) file or installed font not found.
\zf@fontspec ...ntname \zf@suffix " at \f@size pt 
                                              \unless \ifzf@icu \zf@set@...
l.3 ...infont[Mapping=tex-text]{Linux Libertine O}

知道这是为什么吗?我安装了 Libertine 的 TTF 文件,还有 XeTeX libertine 包。

[编辑] 我在 openSUSE 11.3 上,并且从 TeX Live 2010 CD 安装了 XeTeX。

答案1

Libertine 的 TTF 版本通常被命名为“Linux Libertine”,不带结尾的“O”,因此请尝试使用该名称或安装 OTF 版本。

答案2

使用字体查看器打开字体,例如gfontview,字体名称的格式是否正确?

确保该(正确)名称的字体可以在其他程序(如 Open Office)中访问!

相关内容