What you are looking for is unfortunately not possible with TextGeometry
. Please use the approach mentioned in:
tl;dr Create a text geometry per line, translate the meshes until they are centered and possibly merge everything so you end up with just on mesh.