From ae8f8af0af7611d22c8e28724968e46b61f2c577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20K=C3=BCnzel?= Date: Mon, 6 Jan 2025 20:31:18 +0100 Subject: [PATCH] images.Text: Add "alignx" option for horizontal alignment Add an "alignx" option to the images.Text to control whether the value of the "x" option is the left border of the text (current behaviour), the center of each line or the right border. Fixes #10849 --- content/en/functions/images/Text.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/en/functions/images/Text.md b/content/en/functions/images/Text.md index 8c6670d42..6a18468b7 100644 --- a/content/en/functions/images/Text.md +++ b/content/en/functions/images/Text.md @@ -37,6 +37,10 @@ x y : (`int`) The vertical offset, in pixels, relative to the top of the image. Default is `10`. +alignx + {{< new-in 0.141.0 >}} +: (`string`) The horizontal alignment of the text relative to the `x` position. One of `left`, `center`, or `right`. Default is `left`. + [global resource]: /getting-started/glossary/#global-resource [page resource]: /getting-started/glossary/#page-resource [remote resource]: /getting-started/glossary/#remote-resource