I have algorithms that I wrote in algorithm2e.
But I want the name of the function written in typewriter.
As you see in the picture, this does not work, I get this strange font:

Here is my MWE:
\documentclass{article}
\usepackage[german, linesnumbered, boxruled]{algorithm2e}
\usepackage{algorithmic}
\newcommand{\pythonsyntax}{
\SetStartEndCondition{ }{}{}%
\SetKwProg{Fn}{Funktion}{:}{End}
\SetKwFunction{Range}{range}%%
\SetKw{KwTo}{in}\SetKwFor{For}{for}{\string:}{}%
\SetKwIF{If}{ElseIf}{Else}{if}{:}{elif}{else:}{endif}%
\SetKwFor{While}{while}{:}{endwhile}%
\SetKwFor{For}{for}{:}{endfor}
\SetKw{or}{or}
\newcommand{\forcond}{$i$ \KwTo\Range{$n$}}
\AlgoDontDisplayBlockMarkers
\SetKw{in}{in}
}
\newcommand{\basic}{
\DontPrintSemicolon
\SetAlgoLined
\SetKwInput{algoinput}{Eingabe}
\SetKwInput{algooutput}{Ausgabe}
\SetKw{return}{return}
\SetKw{and}{and}
\SetKw{continue}{continue}
\SetKw{in}{in}
\SetKw{to}{to}
\newcommand{\algotrue}{\return\texttt{True}}
\newcommand{\algofalse}{\return\texttt{False}}
}
\newcommand{\eingabe}[1]{\algoinput{#1}}
\newcommand{\ausgabe}[1]{\algooutput{#1}}
\newcommand{\funktion}[2]{\Fn{#1}{#2}}
\begin{document}
\begin{algorithm}[H]
\caption{This is an MWE} \label{algo: findjacobikandidat}
\basic
\pythonsyntax
\eingabe{Some variables \texttt{a} and \texttt{b}}
\ausgabe{Some other variables}
\funktion{\texttt{wrongfont(h, k, p)}}{
here is some command
}
\end{algorithm}
\end{document}
