How can I make the minipage/framebox page justified, so it stop the badness underfull warnings?
The warnings are:
Bad Boxes:
D:\test2.tex:23: Underfull \hbox (badness 10000) in paragraph at lines 23--23[]\OT1/cmtt/m/n/10 Lembre-se: a ficha de identificao da obra elaborada
D:\test2.tex:23: Underfull \hbox (badness 10000) in paragraph at lines 23--23\OT1/cmtt/m/n/10 pelo autor deve constar no verso da folha de rosto
D:\test2.tex:23: Underfull \hbox (badness 10000) in paragraph at lines 23--23\OT1/cmtt/m/n/10 de teses e dissertaes de modo a possibilitar sua
D:\test2.tex:23: Underfull \hbox (badness 10000) in paragraph at lines 23--23\OT1/cmtt/m/n/10 representao precisa pelas informaes de autor, ttulo,
For the sample code:
\documentclass[10pt,openright,twoside,a5paper]{memoir}
\usepackage[showframe]{geometry}
\usepackage[brazil]{babel}
\begin{document}
\begin{center}
\hspace*{1cm}
{Catalogação na fonte pela Biblioteca Universitária da Universidade
Universitária da Universidade.}
\framebox[\textwidth]
{
\begin{minipage}{\textwidth}
\ttfamily
Lembre-se: a ficha de identificação da obra elaborada pelo autor deve constar no
verso da folha de rosto de teses e dissertações de modo a possibilitar sua
representação precisa pelas informações de autor, título, local, data, número de
folhas, assunto, etc.
\end{minipage}
}
\end{center}
\end{document}

\ttfamilydoesn't allow the spreadings necessary. Because of this, if you want to get rid of your badbox-warnings, insert a\raggedrightafter\ttfamily. – Skillmon Aug 16 '17 at 11:49\raggedrightdoes fixed the warning. But I would prefer an alternative to\ttfamilywhich allows the fully-justified text. – user Aug 16 '17 at 11:54\ttfamilytake a look here. – Skillmon Aug 16 '17 at 11:55\hyphenchar\font=\-\relax` – Skillmon Aug 16 '17 at 12:22\ttfamilymacro. In particular, the other changes like\fontdimen4\font=.167em\relaxand so on are important, too, because those allow the justification. And those changes have to be invoked after\ttfamilyhence the usage of\origttfamilyin the linked answer. – Skillmon Aug 16 '17 at 12:46