Closed shenjing023 closed 3 years ago
I really don't understand the use case.
Manim creates the SVG file using ManimPango and later parses it. It should anyway save the file because Manim wants to Cache the SVG file for the future as well as the SVG parser doesn't support parsing file object directly (maybe you can make an issue about that in other repo).
In case, you are asking for use in any other project you should possibly wait until #28.
Closing this. I think it should be fine to add this support when #28 is done.
In Manim Text class, if override the text2svg method use pycairo:
It can manipulate SVG in memory. Here is the reference: pycairo svgsurface surface.c