Skip to content

[GR] Any way to have native <text> in SVG? #2596

@akdor1154

Description

@akdor1154

Hi,
Foreward: I'm a new Julia user so apologies if I've missed anything.
Foreward 2: Thanks for maintaining this great library, and the clear effort that has gone into making a complex set of systems work well for newbies.

I'm trying to plot SVGs with the default GR backend and I'd like the text in the SVGs to be rendered as <text> elements. The default behaviour seems to "pathsterize" text, turning each letter into a path. This would
a) mean users can copy and paste labels from my plots
b) reduce the size of figures significantly.
c) hopefully eliminate the restriction of GR's limited font set (at the cost of making the output figure vary based on what's available on the user's computer).

Is this behaviour possible in the GR backend? Or in another backend that can produce SVGs without either running a headless browser or pulling in all of Python? :)

Cheers
Jarrad

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions