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

[feature] Support horizontal alignment in HTML labels (Request in QGIS) #9264

Closed
qgis-bot opened this issue Sep 16, 2024 · 0 comments · Fixed by #9488
Closed

[feature] Support horizontal alignment in HTML labels (Request in QGIS) #9264

qgis-bot opened this issue Sep 16, 2024 · 0 comments · Fixed by #9488
Labels
3.40 Labels Layer labels properties
Milestone

Comments

@qgis-bot
Copy link
Collaborator

qgis-bot commented Sep 16, 2024

Request for documentation

From pull request qgis/QGIS#58652
Author: @nyalldawson
QGIS version: 3.40

[feature] Support horizontal alignment in HTML labels

PR Description:

For multi-line labels, this allows use of either:

  • HTML <p align="xxx"> attributes
  • CSS "text-align: xxx"
  • HTML <center>some text</center> tags

Supported alignments are left, right, center and justify

Horizontal alignment can be used in all contexts where HTML text is rendered, EXCEPT for curved labels (since they are restricted to single-line text)

Sponsored by City of Freiburg im Breisgau

Commits tagged with [need-docs] or [FEATURE]

"[feature] Support horizontal alignment in HTML labels\n\nFor multi-line labels, this allows use of either:\n\n- HTML <p align="xxx"> attributes\n- CSS "text-align: xxx"\n- HTML

some text tags\n\nSupported alignments are left, right, center and justify\n\nHorizontal alignment can be used in all contexts where\nHTML text is rendered, EXCEPT for curved labels (since they\nare restricted to single-line text)\n\nSponsored by City of Freiburg im Breisgau"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.40 Labels Layer labels properties
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants