CairoMakie - SVG export options

There are some issues with exporting svgs with <text> tags.

  • mathtexengine uses glyphs which don’t have unicode symbols, so you can’t access them via unicode strings.
  • Makie’s internal representation given to the backends is already abstracted to a collection of single glyphs, so it’s not clear anymore what the coherent strings or words were (unless you do extra work to reverse those steps in the backend)
  • svg doesn’t give the option to place each glyph in a string separately, which means you can only use the default placement algorithm. So this wouldn’t work with the upcoming superscript / subscript functionality. The workaround would be to give each glyph it’s own <text> tag but I’m not sure if that’s useful for manual post editing either.
1 Like