Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for aligning text when adding to images using images.Text #10849

Closed
lyricnz opened this issue Mar 20, 2023 · 2 comments · Fixed by #13223
Closed

Add support for aligning text when adding to images using images.Text #10849

lyricnz opened this issue Mar 20, 2023 · 2 comments · Fixed by #13223

Comments

@lyricnz
Copy link

lyricnz commented Mar 20, 2023

If we could left/center/right align text within a textbox (and maybe support word-wrap?) this would make the text rendering a lot more useful. Often when we are rendering images dynamically, to match some designer-specified template, they would include left/centre/right alignment, which I don't think we can currently do.

@bep bep added this to the v0.112.0 milestone Mar 20, 2023
@bep bep modified the milestones: v0.112.0, v0.113.0 Apr 15, 2023
@bep bep modified the milestones: v0.113.0, v0.114.0, v0.115.0 Jun 8, 2023
@bep bep modified the milestones: v0.115.0, v0.116.0 Jun 30, 2023
@bep bep modified the milestones: v0.116.0, v0.117.0 Aug 1, 2023
@bep bep modified the milestones: v0.117.0, v0.118.0 Aug 30, 2023
@bep bep modified the milestones: v0.118.0, v0.119.0 Sep 15, 2023
@bep bep modified the milestones: v0.119.0, v0.120.0 Oct 5, 2023
@bep bep modified the milestones: v0.120.0, v0.121.0 Oct 31, 2023
@bep bep modified the milestones: v0.121.0, v0.122.0 Dec 6, 2023
@bep bep modified the milestones: v0.122.0, v0.123.0, v0.124.0 Jan 27, 2024
@bep bep modified the milestones: v0.124.0, v0.125.0 Mar 4, 2024
@bep bep modified the milestones: v0.125.0, v0.137.0, v0.138.0, v0.139.0 Oct 23, 2024
@jlskuz
Copy link
Contributor

jlskuz commented Nov 6, 2024

That is something we would need as well!

@bep bep modified the milestones: v0.139.0, v0.140.0 Nov 21, 2024
@bep bep modified the milestones: v0.140.0, Unscheduled Dec 11, 2024
jlskuz added a commit to jlskuz/hugo that referenced this issue Jan 6, 2025
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 gohugoio#10849
jlskuz added a commit to jlskuz/hugo that referenced this issue Jan 6, 2025
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 gohugoio#10849
jlskuz added a commit to jlskuz/hugo that referenced this issue Jan 6, 2025
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 gohugoio#10849
jlskuz added a commit to jlskuz/hugo that referenced this issue Jan 6, 2025
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 gohugoio#10849
jlskuz added a commit to jlskuz/hugo that referenced this issue Jan 7, 2025
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 gohugoio#10849
jlskuz added a commit to jlskuz/hugo that referenced this issue Jan 8, 2025
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 gohugoio#10849
@bep bep closed this as completed in #13223 Jan 8, 2025
@bep bep closed this as completed in 4a5cc2d Jan 8, 2025
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants