I'm trying to install a custom fontfamily, named Agenda, in my Latex document. I use XeLatex, so i tried to load the font with \fontspec:
Using this code, the font works great:
\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[german]{babel}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=10mm,bmargin=10mm,lmargin=10mm,rmargin=5mm}
\usepackage{fontspec}
\begin{document}
\newfontfamily\bodyfont[]{Agenda}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[Mapping=tex-text, Color=textcolor]{Agenda Medium}
hello \textbf{world}
\end{document}
Adding a word with an "umlaut" to the text, like "Änderung" or " "Anderung", I get the error : Type2 Charstring Parser: Parsing charstring failed: (stataus=-1, stack=5).
When I change the font to a windows system font font like Arial:
\newfontfamily\bodyfont[]{Arial}
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[Mapping=tex-text, Color=textcolor]{Arial Regular}
...I get this error:
! fontspec error: "font-not-found"
! The font "Arial Regular" cannot be found.
\documentclass{...}
and ending with\end{document}
. Also add a link to a resource for the font, please. And a suggestion: Do us a favour and change your username to something more telling than "user1234".