KP-monospaced mit LuaLaTeX

KP-monospaced mit LuaLaTeX

wie stelle ich mit Fontspec die Schriftart KP-Monospace so ein, dass sie als TT-Schriftart verwendet wird?

Ich habe Folgendes versucht:

\documentclass{article}
\usepackage{fontspec}
\setmonofont{KP-monospaced}
\begin{document}
\texttt{120 test}
\end{document}

Aber es funktioniert nicht

Antwort1

Ich bin nicht sicher, ob das die richtige Vorgehensweise ist, aber nach sehr minimalen Tests scheint Folgendes für mich zu funktionieren.Vorsicht beim Kauf …

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{fontspec}
\makeatletter
\DeclareRobustCommand\ttfamily{%
  \not@math@alphabet\ttfamily\mathtt
  \fontencoding{T1}\fontfamily\ttdefault\selectfont}
\makeatother
\renewcommand{\ttdefault}{jkptt}
\begin{document}
  \texttt{120 test}
\end{document}

verwandte Informationen