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...

Johannes_B
  • 24,235
  • 10
  • 93
  • 248
x4k3p
  • 144
  • 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 08: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 09: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: http://tex.stackexchange.com/questions/167670/umlaut-dots-in-a-different-color/167674#167674 – Steven B. Segletes May 01 '15 at 01:39
  • @UlrikeFischer Do you want to make your comment into an answer? – Johannes_B Jun 16 '15 at 21:38

1 Answers1

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]
Ulrike Fischer
  • 327,261