I am trying to use a typewriter font (TXTT) in a document, but it consistently overruns the margins. I don't know if this is expected or if I am making a mistake in my document.
An MWE below:
\documentclass[a4paper, 12pt]{memoir}
% Load packages
\usepackage[showframe]{geometry}
\usepackage[colorlinks = true, urlcolor = blue, linkcolor = black]{hyperref}
\usepackage{enumitem}
\setlist{itemsep=0.05em}
\usepackage{xfrac}
\usepackage{booktabs}
\usepackage{tocloft}
\usepackage{lipsum}
% TXTT typewriter font
\renewcommand\ttdefault{txtt}
\renewcommand\familydefault{\ttdefault} %% Only if the base font of the document is to be typewriter style
\usepackage[T1]{fontenc}
% Formatting matters
\setlength\parskip{1em}
\setlength\parindent{0em}
\renewcommand\contentsname{} % the empty ToC name
\renewcommand{\labelitemii}{$\circ$}
% =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
\begin{document}
\lipsum
\end{document}

\sloppy. – musarithmia Apr 05 '23 at 13:00\raggedrightwith fixed width space and no hyphenation it is literally impossible to justify the text margins. – David Carlisle Apr 05 '23 at 13:47\raggedrightalso did the trick. I wasn't fixated on keeping the text justified, so this works just fine. – tlmoore Apr 07 '23 at 07:59