Because of some problems in Windows with system-installed Linux Libertine/Biolinum Open Type fonts, I decided to define their usage w.r.t. different font shapes in XeLaTeX with the fontspec package:
\documentclass{artcl}
\usepackage{fontspec}
\newfontfamily\LinuxLibertine[ Path = fonts/,
BoldFont = LinLibertine_RB.otf,
ItalicFont = LinLibertine_RI.otf,
BoldItalicFont = LinLibertine_RBI.otf,
SlantedFont = LinLibertine_aRL.otf,
BoldSlantedFont = LinLibertine_aBL.otf,
SmallCapsFont = LinLibertine_aS.otf,
Mapping = tex-text]{LinLibertine_R.otf}
\setmainfont[ Path = fonts/,
BoldFont = LinLibertine_RB.otf,
ItalicFont = LinLibertine_RI.otf,
BoldItalicFont = LinLibertine_RBI.otf,
SlantedFont = LinLibertine_aRL.otf,
BoldSlantedFont = LinLibertine_aBL.otf,
SmallCapsFont = LinLibertine_aS.otf,
Mapping = tex-text]{LinLibertine_R.otf}
\begin{document}
Some text here...
\end{document}
Is there a possibility to use the previously defined font family in the \setmainfont command, e.g.:
\setmainfont{\LinuxLibertine}
\setmainfontdoesn't suffice. Could you explain more in your question? – egreg Sep 25 '11 at 11:22.otffonts of the LL into~/.fonts/type1/linuxlibertine/and the.ttfversions into~/.fonts/type1/truetype/linuxlibertine/. (cont.) – Frakturfreund Sep 26 '11 at 15:09
– Frakturfreund Sep 26 '11 at 15:09\documentclass{minimal} \usepackage{fonspec} \setmainfont{Linux Libertine O} \begin{document} regular text, but \emph{italics are to bold}. \end{document}So that’s the reason why one want to set up the LL fonts ›by hand‹..otfand.ttf) around can be a source of problems. – egreg Sep 26 '11 at 19:21