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

Support CSS background property in labels/text renderer (Request in QGIS) #9401

Open
qgis-bot opened this issue Nov 21, 2024 · 0 comments
Open
Labels
3.42 QGIS 3.42 new features Labels Layer labels properties
Milestone

Comments

@qgis-bot
Copy link
Collaborator

Request for documentation

From pull request qgis/QGIS#59450
Author: @nyalldawson
QGIS version: 3.42

**Support CSS background property in labels/text renderer **

PR Description:

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

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

"[feature] Support CSS background property in labels/text renderer\n\nThis commit adds support for the CSS background-color and\nbackground-image properties when used with HTML labels.\n\n- Backgrounds are supported for block items (eg <div>) or inline\n items (eg <span>)\n- For images, the CSS should be formatted as background-image: url(xx).\n It supports local file paths, http links, or base64 embedded content\n- Backgrounds are not supported for curved text\n- HTML backgrounds are always rendered above any background shape for\n the label, and below drop shadows/buffers\n\nSponsored by City of Freiburg im Breisgau"

@DelazJ DelazJ added Labels Layer labels properties 3.42 QGIS 3.42 new features labels Nov 22, 2024
@DelazJ DelazJ added this to the QGIS 3.48 milestone Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.42 QGIS 3.42 new features Labels Layer labels properties
Projects
None yet
Development

No branches or pull requests

2 participants