[Tex/LaTex] Use Bahnschrift font with XeLaTeX

boldfontsfontspecitalicxetex

I'm looking to write a document with Bahnschrift, Microsoft's implementation of DIN 1451 font standard. So I made the code to see if I can have bold and italic font.

% !TEX program = xelatex
% !TEX encoding = UTF-8 Unicode

\documentclass{article}

\usepackage{fontspec}
\setmainfont{Bahnschrift.ttf}

\begin{document}
Bahnschrift

\textit{Bahnschrift}

\textbf{Bahnschrift}

\textbf{\textit{Bahnschrift}}

\end{document}

But I got this :

Output

Is there a way to display bold and italic Bahnschrift with LaTeX ? If not, which similar font would work ?

Best Answer

You could fake the variants (imho the font has not real italic/slanted anyway):

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Bahnschrift}%
 [
  BoldFont={Bahnschrift},
  BoldFeatures={FakeBold=1.6},  % {RawFeature={embolden=1.6}}  with lualatex
  ItalicFont={Bahnschrift},
  ItalicFeatures={FakeSlant=0.2},
  BoldItalicFont={Bahnschrift},
  BoldItalicFeatures={FakeSlant=0.2,FakeBold=1.6},
 ]

\begin{document}
blub {\bfseries blub \itshape blub} \itshape blub
\end{document}

enter image description here