Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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)?

share|improve this question
2  
You should mention that you use/this needs XeLaTeX. –  Martin Scharrer Jun 29 '11 at 21:28
    
Doesn't happen to me. I suspect that different fonts are used from XeTeX and xdvipdfmx. –  egreg Jun 29 '11 at 21:31
    
Funny, I have the full TeXLive 2010 installation but the font is not included. How did you installed it exactly? –  Martin Scharrer Jun 29 '11 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 Jun 29 '11 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. –  Ulrike Fischer Jun 30 '11 at 7:33

2 Answers 2

up vote 3 down vote accepted

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

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.