Texts may contain newlines to create multiline text.
The text alignment of the individual lines can be controlled by the
multialignment parameter. If not set, the alignment of the lines is inferred from
the horizontalalignment and verticalalignment parameters, which primarily
control the alignment of the bounding box of the text to its anchor point; e.g. if the
text has the anchor point to its right, all text lines will be aligned to the right
so that they pick up that anchor point.
When using mutli-line labels, it is recommended to use a layout manager (e.g.
layout="constrained") to ensure that there is enough space for the labels..