2

I need to use special font. There are no german umlauts defined. So everytime I get an error if I try to use them with my font (BentonSans):

\documentclass[a4paper,10pt]{article}
\pagenumbering{gobble}
\usepackage[absolute]{textpos}
%\usepackage[T1]{fontenc}
%\usepackage[utf8]{inputenc}
\usepackage{listings, mdframed}
\usepackage{color}
\usepackage{fontspec}
\usepackage{xunicode}
\usepackage{xltxtra}
\usepackage{setspace}
\usepackage{tabularx}
\usepackage{longtable}
\usepackage{ngerman}
\usepackage[ngerman]{babel}

\newfontfamily{\extralight}[UprightFont={* Extra Light}]{BentonSans}
\newfontfamily{\light}[UprightFont={* Light}]{BentonSans}
\newfontfamily{\thin}[UprightFont={* Thin}]{BentonSans}
\newfontfamily{\medium}[UprightFont={* Medium}]{BentonSans}

\definecolor{SPECIAL_GRAY}{HTML}{464854}

\begin{document}

\thin{äüöÄöüß}

\end{document}

Error:

$ xelatex main.tex
...
** WARNING ** "seac" character deprecated in Type 2 charstring.
** ERROR ** Type2 Charstring Parser: Parsing charstring failed: (status=-1, stack=5)

Output file removed.
 )
Error 256 (driver return code) generating output;
file main.pdf may not be valid.
Transcript written on main.log.

Is there any possibility to use this font and use umlauts? Currently I try with mathmode for which I set the font to use but if I have bold text somewhere or f.e. want to use \extralight my math font is still other one:

\usepackage{mathspec}
\setmathsfont(Digits,Latin,Greek)[Numbers={Lining,Proportional}, Path=fonts/]{BentonSans-Light.ttf}

Main aspect is that I have to migrate one document from MS Office to TeX and I must use this font. In MS Word it works just normally...

  • 1
    On the german list a similar (not the same) message was reported and there a workaround was to load the font by file name and to explicitly tell fontspec the extension: \setmonofont{AnonymousPro-Regular}[% Extension = .ttf]. – Ulrike Fischer Apr 24 '15 at 8:56
  • yes, that worked. Could I also apply multiple .ttf for bold, italic etc. at same time then? I have them in fonts folder. – x4k3p Apr 24 '15 at 9:01
  • I don't understand your question, but look in the fontspec documentation. It describes how to load bold etc explicitly. – Ulrike Fischer Apr 24 '15 at 10:19
  • nevermind, I just use it otherway – x4k3p Apr 24 '15 at 10:25
  • You could also try the \cumlaut approach without the color: tex.stackexchange.com/questions/167670/… – Steven B. Segletes May 1 '15 at 1:39
5

On the german list a similar (not the same) message was reported and there a workaround was to load the font by file name and to explicitly tell fontspec the extension:

\setmonofont{AnonymousPro-Regular}[Extension = .ttf]
  • 1
    That was fast :-) – Johannes_B Jun 16 '15 at 21:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.