Open
Description
It would be useful to be able to choose a vertical alignment (relative to the y
offset) for text added using images.Text
. This becomes useful in the following scenarios when the number of lines of text is not fixed.
- Centering text vertically.
- Creating an Open Graph image with a subtitle at a fixed distance below the title. This can be achieved by making the title "bottom" aligned and the subtitle "top" aligned and having the same
y
offset for both texts.
It is not currently possible to implement these using only the y
option which sets a vertical offset for the top of the text relative to the top of the image.
Vertical alignment would complement the horizontal alignment feature (alignx
) mentioned in #10849 and added in #13223.