Skip to content

Support for text elements #1400

@MewPurPur

Description

@MewPurPur

The <text> element is important for many people, unfortunately, GodSVG can't handle it. If you import an SVG with it, it's listed as unrecognized.

The main issue with implementing this is the fact that it won't render. I'm not sure why, but text elements don't render, and I haven't been able to get them to.

Image

The text won't be shown in the viewport or after being rasterized on export. On SVG exports, it will be preserved, so you can technically work with it and finish it up in other applications, but not being able to view it is a dealbreaker for many people and showing it in the GUI would do more harm than good, even if not shown in the "Add element" popup.

These difficulties make it less of a priority for me at the moment. Hopefully Godot sorts this out soon.

How can text be displayed then? The only way I can think of is to use a good text to path conversion pipeline when making the SVG. I don't know how to do that, but this would be a good functionality to have anyway, even if text support is added. But it would then require reworking the inspector, as I want to do that alongside having custom editors for different elements.

So this is where text support stands at the moment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions