XeLaTeX 抱怨字体

XeLaTeX 抱怨字体

我已经安装了 TeXLive 2011。

我的文档如下所示:

\documentclass[11pt,a4paper]{moderncv}

\moderncvstyle{classic}
\moderncvcolor{orange}

\usepackage{moderntimeline}
\tlmaxdates{2000}{2013}
\tlwidth{0.8ex}

\usepackage{fontspec}
\usepackage[polish]{babel}

\firstname{Name}
\familyname{Surname}
%\title{}
\address{street}{postcode city}
\mobile{+4~(11)~311~111}
%\phone{+2~(345)~678~901}
%\fax{+3~(456)~789~012}
\email{[email protected]}
%\homepage{www.johndoe.com}
\extrainfo{additional info}·
% '64pt' is the height the picture must be resized to, 0.4pt is the thickness of
% the frame around it (put it to 0pt for no frame) and 'picture' is the name of
% the picture file.
\photo[64pt][0.4pt]{picture.png}
%\quote{}

\begin{document}

%\setmainfont[
%  Extension=.otf,
%  UprightFont=*-Regular,
%  BoldFont=*-Bold,
%  ItalicFont=*-It,
%  BoldItalicFont=*-BoldIt,
%]{MinionPro}
%\setsansfont[
%  Extension=.otf,
%  UprightFont=*-Regular,
%  BoldFont=*-Bold,
%  ItalicFont=*-It,
%  BoldItalicFont=*-BoldIt,
%]{MyriadPro}

\setmainfont{Minion Pro}
\setsansfont{Myriad Pro}

\section{Expirience}

\subsection{Other}
\tlcventry[orange]{2001}{0}{Administration}{COMPANY}{City}{}{Short Description%
\begin{itemize}%
\item Item One 
\begin{itemize}%
  \item Item Two 
\end{itemize}
\end{itemize}}

\section{Foreign Languages}
\cvitemwithcomment{English}{Fluent}{Some description here}

\end{document}

如果我编译这个,我会收到如下警告:

LaTeX Font Warning: Font shape `EU1/MyriadPro(0)/m/sl' undefined
(Font)              using `EU1/MyriadPro(0)/m/n' instead on input line 58.

并且\tlcventry“COMPANY”不是斜体(我的意思是它应该像带有\textit或的文本一样处理\emph- 默认情况下\tlcventry使字段#4为斜体)。

稍微预览一下它的外观:

答案1

Myriad Pro 字体没有倾斜形式,fontspec似乎无法自动替换斜体,因此您可以通过以下方式帮助它

\setsansfont[SlantedFont=* Italic]{Myriad Pro}

相关内容