MakieOrg / Makie.jl

Interactive data visualizations and plotting in Julia
https://docs.makie.org/stable
MIT License
2.39k stars 303 forks source link

Is there any way to save text as <text> in svg #2015

Open w-zhiwei opened 2 years ago

w-zhiwei commented 2 years ago

Seems like texts are converted to \<path> when exporting using CarioMakie. It would be better if it can be restored in native \<text> so that font size and font family can be controlled and altered by CSS without re-plotting.

asinghvi17 commented 2 years ago

I'm not sure this is something we can do, for multiple reasons:

Someone else might know more on this topic but as far as I understand it, this is not easy to do.

Have you considered an alternative solution? It's a bit hacky, but you could just render different SVGs for each CSS mode if you know them in advance.