XeLatex 中的 Unicode 字符

XeLatex 中的 Unicode 字符

这是我的 LaTex 脚本:

\documentclass[a4paper]{article}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\setmainfont[Mapping=tex-text]{Jenson Classico}
\begin{document}
ąęśćłó
\end{document}

我通过 eclipse 插件使用 xelatex 进行编译。

由于 Jenson Classico 没有波兰语字符,我编辑了此字体以添加它们。在 Microsoft Office 中它工作正常(我可以使用波兰语字符)。不幸的是,在从上述 tex 文件生成的 pdf 中它不行。如果我使用任何其他字体(例如 Arial),它就像梦一样工作。

有什么建议吗?我真的没有其他想法了……


这是日志文件的一部分:

Requested font "Jenson Classico" at 10.0pt
 -> C:/WINNT/Fonts/Jenson.ttf
Requested font "Jenson Classico/ICU" at 10.0pt
 -> C:/WINNT/Fonts/Jenson.ttf
 fontspec Info: Font Jenson Classico does not contain any OpenType `Script' inf
ormation.

\c@zf@famc@Jenson Classico=\count151
 fontspec Info: Defining font family for 'Jenson Classico' with options [Mappin
g=tex-text].

Package fontspec Info: Defining shape m/n with raw font features:
(fontspec)             mapping=tex-text;.
Requested font "Jenson Classico/B/ICU" at 10.0pt
 -> C:/WINNT/Fonts/Jenson.ttf
 fontspec Info: Could not resolve font Jenson Classico/B (it probably doesn't e
xist).

Requested font "Jenson Classico/I/ICU" at 10.0pt
 -> C:/WINNT/Fonts/Jenson.ttf
 fontspec Info: Could not resolve font Jenson Classico/I (it probably doesn't e
xist).

Requested font "Jenson Classico/BI/ICU" at 10.0pt
 -> C:/WINNT/Fonts/Jenson.ttf
 fontspec Info: Could not resolve font Jenson Classico/BI (it probably doesn't 
exist).

Requested font "Jenson Classico/ICU:mapping=tex-text;" at 10.0pt
 -> C:/WINNT/Fonts/Jenson.ttf

[...]

Missing character: There is no ą in font Jenson Classico/ICU:mapping=tex-text;
!
Missing character: There is no ę in font Jenson Classico/ICU:mapping=tex-text;
!
Missing character: There is no ś in font Jenson Classico/ICU:mapping=tex-text;
!
Missing character: There is no ć in font Jenson Classico/ICU:mapping=tex-text;
!

答案1

日志文件说了什么?如果 XeTeX 认为字体缺少字符,您会在日志文件中看到

Missing character: There is no ä in font [...]!

相关内容