Version: ImageMagick 7.0.8-7 Q16 x86_64 2018-07-24
I generate the text with:
convert -size 800x -background '#00000080' -fill white -pointsize 24 pango:@./text.txt text.png
And then I have tried to make it rounded with all of the examples from:
https://www.imagemagick.org/Usage/thumbnails/#rounded
For example:
convert text.png \
\( +clone -alpha extract \
-draw 'fill black polygon 0,0 0,15 15,0 fill white circle 15,15 15,0' \
\( +clone -flip \) -compose Multiply -composite \
\( +clone -flop \) -compose Multiply -composite \
\) -alpha off -compose CopyOpacity -composite rounded_corners.png