[XeTeX] Nested \textit in an italic fontinstance

nickkk at phonecoop.coop nickkk at phonecoop.coop
Tue Sep 12 11:06:46 CEST 2006


Thank you for xetex - it's great!

Is the following failure to italicize a bug, a feature, or am I doing 
something wrong?

The penultimate line tells me that \textit when the fontinstance is italic 
doesn't work, even though:
\textbf when the fontinstance is bold does,
\textbf when the fontinstance is italic does, 
\textit when the fontinstance is bold does, and
\textit within a \textit bracket does too.

The behaviour is not symmetrical.  The same behaviour is observed with Minion 
Pro.

I'm using:
opensuse 10.1
xdvipdfmx 0.3
xetex 0.995

Many thanks for your help

Nick

************************************************************
\documentclass[11pt,dvipdfm]{report}

\usepackage{xltxtra}
\usepackage{fontspec,xunicode}

\defaultfontfeatures{Mapping=tex-text}
			
\setromanfont{Myriad Pro}
\newfontinstance\bold{Myriad Pro Bold}
\newfontinstance\italic{Myriad Pro Italic}

\begin{document}

{Regular {\italic Italic} {\bold Bold}}

{Regular \italic Italic \bold Bold}

{Regular \italic Italic \textbf{Bold Italic}}

{Regular \bold Bold \textit{Bold Italic}}


{\bold Bold \textbf{Bold Too}}

{{\bold Bold} \textbf{Bold Too}}

{\textbf{Bold \textbf{Bold Too}}}


{{\italic Italic} \textit{Italic too}}

{\italic Italic \textit{Surely this should be Italic too?}}

{\textit{Italic \textit{Italic Too}}}

\end{document}
*************************************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: minimal.pdf
Type: application/pdf
Size: 11883 bytes
Desc: not available
Url : http://tug.org/pipermail/xetex/attachments/20060912/1beb2811/attachment-0001.pdf 


More information about the XeTeX mailing list