3

Loading the Linux Libertine Initials font breaks the emph command, even if the font is not used:

\documentclass{scrartcl}                                                        

\usepackage{fontspec}                                                           
\usepackage{xunicode}                                                           
\setmainfont[Mapping=tex-text]{Linux Libertine O}                               
\newfontfamily\lettrinefont{Linux Libertine Initials O}                         

\begin{document}                                                             

This is a test with \emph{emphasis}.                                            


\end{document} 

gives

emph bug

Is this known? How can it be prevented (other than redefining emph to use Linux Libertine Slanted)?

9
  • 2
    You should mention that you use/this needs XeLaTeX. Commented Jun 29, 2011 at 21:28
  • Doesn't happen to me. I suspect that different fonts are used from XeTeX and xdvipdfmx.
    – egreg
    Commented Jun 29, 2011 at 21:31
  • Funny, I have the full TeXLive 2010 installation but the font is not included. How did you installed it exactly? Commented Jun 29, 2011 at 21:35
  • @Raphink: This is 'works for me' with a fresh Linux Libertine download. Either the font or TeX system is suspect: perhaps a \listfiles output plus version information on your font would be helpful.
    – Joseph Wright
    Commented Jun 29, 2011 at 21:38
  • 3
    When fonts go mad it is - as egreg mentioned - often due to multiple version of fonts. So at first check them: Put \XeTeXtracingfonts=1 at the begin of your file. Then compile in a command window with xelatex --outputdriver="xdvipdfmx -vv" file then compare carefully in log and the messages of xdvipdfmx the pathes of the fonts used. If you can't find the reason: Add also \listfiles to the .tex and show us the log-file of the compilation. Commented Jun 30, 2011 at 7:33

2 Answers 2

3

Ok, I had the ttf-linux-libertine package installed, which was conflicting with my local fonts. After removing this package, all works fine!

0

Other ways to avoid corruption is to define the font with full path in the .tex file or remove the relevant entries in /etc/fonts.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .