I do have a similar issue after Debian did upgrade TexLive 2009 to TexLive 2011.
Slanted fonts appears as normal fonts in XeLaTeX (regardless the font I use) and some font shapes are not available in xelatex and also in pdflatex.
After upgrading to version 2011 of Debian's TexLive, some warnings appears when I compile a document with xelatex:
Code: Select all
\documentclass{article}
\usepackage{ifpdf,ifxetex}
\ifpdf
\usepackage[utf8x]{inputenc}
\else
\ifxetex
% \usepackage{xunicode}
% \usepackage{xltxtra}
\usepackage{fontspec}
\setromanfont[Mapping=tex-text]{Linux Libertine O}
\fi
\fi
\begin{document}
{\sl TEST} \textsl{TEST}
\end{document}
This simple code can compiled with either XeLaTeX or pdfLaTeX engines. The result compiling with pdfLaTeX is both words "TEST" appears slanted but with XeLaTeX none of them appears slanted.
The following are extraits from compilation .log:
. Font family 'LinuxLibertineO(0)' created for font 'Linux Libertine O' with
. options [Mapping=tex-text].
.
. This font family consists of the following shapes:
.
. * 'normal' with NFSS spec.:
. <->"Linux Libertine O/ICU:script=latn;language=DFLT;mapping=tex-text;"
.
. * 'small caps' with NFSS spec.:
. <->"Linux Libertine O/ICU:script=latn;language=DFLT;mapping=tex-text;+smcp;"
.
. * 'bold' with NFSS spec.:
. <->"Linux Libertine O/B/ICU:script=latn;language=DFLT;mapping=tex-text;"
.
. * 'bold small caps' with NFSS spec.:
. <->"Linux Libertine
. O/B/ICU:script=latn;language=DFLT;mapping=tex-text;+smcp;"
.
. * 'italic' with NFSS spec.:
. <->"Linux Libertine O/I/ICU:script=latn;language=DFLT;mapping=tex-text;"
.
. * 'italic small caps' with NFSS spec.:
. <->"Linux Libertine
. O/I/ICU:script=latn;language=DFLT;mapping=tex-text;+smcp;"
.
. * 'bold italic' with NFSS spec.:
. <->"Linux Libertine O/BI/ICU:script=latn;language=DFLT;mapping=tex-text;"
There is no 'slanted' here. Log continues:
...
LaTeX Font Info: Encoding `OT1' has changed to `EU1' for symbol font
(Font) `operators' in the math version `normal' on input line 14.
LaTeX Font Info: Overwriting symbol font `operators' in version `normal'
(Font) OT1/cmr/m/n --> EU1/LinuxLibertineO(0)/m/n on input lin
e 14.
LaTeX Font Info: Encoding `OT1' has changed to `EU1' for symbol font
(Font) `operators' in the math version `bold' on input line 14.
LaTeX Font Info: Overwriting symbol font `operators' in version `bold'
(Font) OT1/cmr/bx/n --> EU1/LinuxLibertineO(0)/m/n on input li
ne 14.
LaTeX Font Info: Overwriting symbol font `operators' in version `normal'
(Font) EU1/LinuxLibertineO(0)/m/n --> EU1/LinuxLibertineO(0)/m
...
LaTeX Font Warning: Font shape `EU1/LinuxLibertineO(0)/m/sl' undefined
(Font) using `EU1/LinuxLibertineO(0)/m/n' instead on input line 16
The last line tells us that there is no slanted font for Linux Libertine 0 and normal will be used instead, but if I change the font to Times New Roman and DejaVu Sans:
LaTeX Font Warning: Font shape `EU1/TimesNewRoman(0)/m/sl' undefined
(Font) using `EU1/TimesNewRoman(0)/m/n' instead on input line 16.
LaTeX Font Warning: Font shape `EU1/DejaVuSans(0)/m/sl' undefined
(Font) using `EU1/DejaVuSans(0)/m/n' instead on input line 16.
So, no slanted fonts in XeLaTeX. Why this happened after upgrading from 2009 to 2011 in Debian?
I don't have the problem the OP reports: italic fonts works for me compiling with both engines, but I do have another -related?- new issue after upgrading:
Adding
to somewhere and compiling with pdflatex, it warns because not available cmr font in 15pt: (also warns with 13pt font)
LaTeX Font Warning: Font shape `OT1/cmr/m/n' in size <15> not available
(Font) size <14.4> substituted on input line 15.