I tried to solve by middle of the following questions:
- ragged2e: "newcommands" option produces "underfull \hbox" warnings,
- Underfull \hbox (badness 10000) in paragraph in figure caption
- and Underfull \hbox (badness 10000) in longtable, but it was unsuccessful.
I use the class memoir, the packages polyglossia, textpos and ragged2e. I added \linebreak. I compile in XeLaTeX. I use Linux and macOS.
I am not sure if it is OK to igonre the errors of Underful \hbox because they are very common, but someone counselled me to keep my document clean and free of errors, economic and optimised.
Here is the small code:
\documentclass[12pt, a4paper, oneside, oldfontcommands, dvipsnames]{memoir}
\usepackage{polyglossia}
\usepackage{fontspec}
\usepackage[absolute, overlay]{textpos}
\usepackage{ragged2e}
\definecolor{solitudeblue3}{HTML}{E5E9F0}
\newfontfamily\alegreya{Alegreya}[Path = ./fontes/,
FontFace = {xb}{n} {* Black},
FontFace = {xb}{it} {* Black Italic},
UprightFont = * Regular,
ItalicFont = * Regular Italic,
BoldFont = * Bold,
BoldItalicFont = * Bold Italic,
NFSSFamily = alegreyaot
]
\newcommand{\ProfCurso}[1]
{
\alegreya{\fontsize{15pt}{18pt}\selectfont \color{solitudeblue3} #1}
}
\begin{document}
\begin{textblock*}{15cm}(4cm, 15cm)
\RaggedLeft
\ProfCurso{Profª Lígia Brezolin}
\linebreak
\ProfCurso{Administração do Sistema de Informação II}
\end{textblock*}
\maketitle
\end{document}
Update
\maketitle is also accused of Underfull hbox due to ragged2e.

Over[under]ful \hboxis a common warning. Ignoring them doesn't cause much harm. However it will be much better if you can avoid it :) – Nov 30 '18 at 16:00titlepage. – egreg Nov 30 '18 at 17:37titlepageenvironment. – Nov 30 '18 at 17:58