# [Tex/LaTex] Change all Linux Libertine font

libertine

I want to buld a book, but I have non stop error! The file use everywhere on tex file Linux Libertine O and other linux libertine font.
I would like to know, how to change all font without change every font by another font.

\documentclass[12pt,french]{book}
\usepackage{libertine}
\setmainfont{Linux Libertine O}
\setromanfont[Mapping=tex-text]{Linux Libertine O}
\setsansfont[Mapping=tex-text]{Linux Biolinum O}

\begin{document}
\include{frontmatter}
\pagenumbering{arabic}
\include{touslesserpents}
\include{8multipliés}
\include{Tortues}
ABC abc
\end{document}


Error is :

The font "Linux Libertine O" cannot be found.
The font "Linux Biolinum O" cannot be found


The best solution is probably just to load the libertine package. This package will automatically detect that you are using XeLaTeX or LuaTeX and load fontspec in that case. If you are using LaTeX or pdfLaTeX, it will use a traditional font configuration instead.

\documentclass[12pt,french]{book}
\usepackage{libertine}

\begin{document}
\include{frontmatter}

I do get a couple of warnings in this case. Apparently, the libertine package attempts to pick some font features which the fonts don't actually support. (At least, not in the versions I have.) But starting with the package is definitely the best strategy. You can then customise it by picking appropriate options if you wish.