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.

I'm using fontspec with XeTeX from TL2010. I've installed the Linux Libertine OTF font files in /usr/local/share/fonts, ran fc-cache and I can see them listed:

$ fc-list | grep -i libert
Linux Libertine Slanted O:style=Slanted
Linux Libertine Slanted O:style=Semibold Slanted
Linux Libertine O:style=Bold Italic
Linux Libertine Capitals O:style=Semibold Italic Samll Caps
Linux Libertine O C:style=Regular
Linux Libertine O:style=Regular
Linux Libertine Capitals O:style=Semibold Small Caps
Linux Libertine O:style=Semibold Italic
Linux Libertine Display Capitals O:style=Small Caps
Linux Libertine O:style=Italic
Linux Libertine Initials O:style=Initials
Linux Libertine O:style=Semibold
Linux Libertine Capitals O:style=Bold Small Caps
Linux Libertine Display O:style=Regular
Linux Libertine Capitals O:style=Italic
Linux Libertine Slanted O:style=Bold Slanted
Linux Libertine O:style=Bold
Linux Libertine Capitals O:style=Bold Italic Samll Caps
Linux Libertine Capitals O:style=Small Caps

Now when I try to use:

\newfontfamily\headerfont{Linux Libertine Slanted O}

fontspec says it can't find the font:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! 
! fontspec error: "font-not-found"
! 
! The font "Linux Libertine Slanted O" cannot be found.
! 
! See the fontspec documentation for further information.
! For immediate help type H <return>.
!...............................................  

l.13 ...mily\headerfont{Linux Libertine Slanted O}

The very same steps work perrfectly on another machine using TL2009 from standard Ubuntu packages.

share|improve this question
add comment

2 Answers

You don't need to copy fonts that are already in TeX Live in system directories; you can simply do the following steps from a terminal window (assuming a bash shell):

sudo cp $(kpsewhich --var-value TEXMFSYSVAR)/fonts/conf/texlive-fontconfig.conf /etc/fonts/conf.d/09-texlive.conf
sudo fc-cache -fsv

The whole system will know those fonts just as if they were in system directories (for programs linked with the fontconfig library, of course).

After installing TeX Live 2011 (after it has been released), you should issue the same two commands and fonts from the new release will be used.

share|improve this answer
    
Is Linux Libertine in a recent version in TL2010 though? –  ℝaphink Jul 4 '11 at 8:13
    
TeX Live 2010 has version 4.8.7 –  egreg Jul 4 '11 at 8:26
    
Right, I'm using 5.1.3 –  ℝaphink Jul 4 '11 at 8:27
add comment
up vote 1 down vote accepted

For some reason, the files where rw-r-----... chmoding them to 644 fixed the issue.

share|improve this answer
add comment

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.