-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Support CSS background property in labels/text renderer #59450
Conversation
@nyalldawson A documentation ticket will be opened at https://github.com/qgis/QGIS-Documentation when this PR is merged. Please update the description (not the comments) with helpful description and screenshot to help the work from documentors. Thank you! |
This pull request has been tagged for the changelog.
You can edit the description. Format available for credits
Thank you! |
🪟 Windows buildsDownload Windows builds of this PR for testing. 🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. |
@nyalldawson you might want to escape the tags here. |
9017f9f
to
5ba07e9
Compare
…et out into separate function
This commit adds support for the CSS ``background-color`` and ``background-image`` properties when used with HTML labels. - Backgrounds are supported for block items (eg ``<div>``) or inline items (eg ``<span>``) - For images, the CSS should be formatted as ``background-image: url(xx)``. It supports local file paths, http links, or base64 embedded content - Backgrounds are not supported for curved text - HTML backgrounds are always rendered above any background shape for the label, and below drop shadows/buffers Sponsored by City of Freiburg im Breisgau
1b13a38
to
ebd2120
Compare
@nyalldawson |
This commit adds support for the CSS
background-color
andbackground-image
properties when used with HTML labels.<div>
) or inline items (eg<span>
)background-image: url(xx)
. It supports local file paths, http links, or base64 embedded contentSponsored by City of Freiburg im Breisgau