Can Latex fill an area of a certain aspect ratio (e.g. 3:1) with centered text using a ttf font so that it can be export to a specific pixel size image (600x200, probably using convert)?
Word- or letter-spacing should not be changed (as seen in \Shapepar
attempt below).
Imagemagick's convert
can do it:
convert -size 600x200 -font Montserrat-Regular -gravity center \
caption:"I am curious about area-filling text rendering options" test.png
\Shapepar
modifies word-spacing, which affects readability:
\documentclass[preview]{standalone}
\usepackage{fontspec}
\setmainfont{Montserrat-Regular}
\usepackage{shapepar}
\begin{document}
\Shapepar{\rectangleshape{200}{600}}I am curious about area-filling text rendering options\par
\end{document}
I also tried increasing point size and restricting the page size using \geometry
but this causes errors
Can \Shapepar
center text rather than modify word-spacing? Or is there another way of filling a specific rectangle with text in Latex?