I'm new to LaTeX and all that stuff, but due to the fact, that I may be using it in the future at university, I just try to get along with it.
To test, I want to have a story in a pretty book. On the web, I found a template for doing so and actually I got pretty far. Unfortunately, I can't change the font, everything I try just results in 1. no change at all or 2. the same font everywhere.
As requested, here is a MWE:
\documentclass[twoside,12pt,german]{book}
\usepackage[german]{babel}
\usepackage{fontspec}
\setmainfont{Handwriting - Dakota}
\begin{document}
This is a test.
\end{document}
These are the error messages I get:
LaTeX Font Warning: Some font shapes were not available, defaults substituted.
LaTeX Font Warning: Font shape
EU1/Handwriting-Dakota(0)/m/sl' undefined (Font) using
EU1/Handwriting-Dakota(0)/m/n' instead on input lineError 256 (driver return code) generating output; file xetest.pdf may not be valid.
No .pdf-file is created.
Acorn
package rather than defining\initfamily
that way as the package sets the font up with\DeclareRobustCommand
andDeclareTextFontCommand
which is less fragile and more in keeping with the way fonts are generally configured for LaTeX. You don't need to\input
the font definition file in this case, either. Also, don't say\renewcommand{\familydefault}{pplj}
. In any case, this is going to override the earlier\setmainfont
. In general, you are mixing different ways of setting fonts so they will compete and not do what you expect.