[Tex/LaTex] Balanced Text Wrapping in \parbox

boxeshorizontal alignment

Is there a possibility to balance the lines if a text has to be wrapped in a \parbox?

\documentclass[a4paper]{scrartcl}
\usepackage{polyglossia}
\setmainlanguage{english}
\begin{document}
    \parbox{35mm}{\centering This is text}

    \parbox{35mm}{\centering This is some more text}
\end{document}

outputs:

    This is text

  This is some more
        Text

while I would like to have

    This is text

    This is some
      more Text

Best Answer

Use ragged2e and \Centering:

\documentclass[a4paper]{scrartcl}
\usepackage{polyglossia}
\usepackage{ragged2e}
\setmainlanguage{english}
\begin{document}
\parbox{35mm}{\centering This is some more text}
\parbox{35mm}{\Centering This is some more text}
\end{document}

enter image description here