Skip to content

[ENH] Support for SVG-encoded colour glyphs #31211

Open

Description

@QuLogic

Colour glyphs using the SVG tables are SVG documents embedded instead of vector glyphs, using tables designed by Mozilla and Adobe. FreeType only supports extracting the document as a blob. Also, unfortunately, Pillow does not support parsing&rendering SVG documents either.

Supporting this format would require an SVG parser (though I believe it is a slightly more constrained subset than the full SVG spec), plus wiring all that up to an Agg renderer. This is likely far too much work for us, but maybe if someone is motivated enough to do so...

Activity

  1. added this to the future releases milestone on Feb 27, 2026
  2. added a commit that references this issue on Feb 27, 2026
  3. tacaswell commented on Mar 19, 2026

    @tacaswell
  4. mohdabid4333-dotcom commented on Mar 19, 2026

    @mohdabid4333-dotcom

    Hi @tacaswell, I apologise for it . I admit that I did use an LLM to help structure my thoughts on the SVG tables requirements, but I've read through the AI policy now. I will not use LLM for this kind of thing from now on. But I'm genuinely interested in contributing to and solving this issue. Can I go ahead and solve this issue?

  5. tacaswell commented on Mar 19, 2026

    @tacaswell
    Member

    This is not the best issue to start with as a first contribution. It is both technically difficult, likely a large amount of code, and commits us to what I worry may be a significant future maintenance burden (I could of course be wrong about any or all of those things).

    I suggest starting with some smaller issue first (like the vmin vs vmax issue you also commented on).

  6. mohdabid4333-dotcom commented on Mar 19, 2026

    @mohdabid4333-dotcom

    Thank you for the advice. I understand the concerns about the technical difficulty and maintenance. I'll start with the vmin vs vmax issue as you suggested to get some experience first. Once I’m more familiar with the technical work of issues, I’d love to revisit this one!

  7. added a commit that references this issue on Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions