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 #59450

Merged
merged 4 commits into from
Nov 21, 2024

Commits on Nov 19, 2024

  1. Configuration menu
    Copy the full SHA
    2267958 View commit details
    Browse the repository at this point in the history
  2. Slight refactor, move logic for calculating horizontal alignment offs…

    …et out into separate function
    nyalldawson committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    10debbd View commit details
    Browse the repository at this point in the history
  3. [feature] Support CSS background property in labels/text renderer

    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
    nyalldawson committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    0613c82 View commit details
    Browse the repository at this point in the history
  4. Test masks

    nyalldawson committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    ebd2120 View commit details
    Browse the repository at this point in the history