cetz-package / cetz

CeTZ: ein Typst Zeichenpaket - A library for drawing stuff with Typst.
https://cetz-package.github.io
GNU Lesser General Public License v3.0
825 stars 35 forks source link

Typst can now parse/display svg from string... #122

Closed Beiri22 closed 1 year ago

Beiri22 commented 1 year ago

This might be an opportunity for drawing... see https://typst.app/docs/changelog/ and https://typst.app/docs/reference/visualize/image/#image-decode

What do you think?

johannes-wolf commented 1 year ago

Hi, I also thought about rendering by outputting SVG and would like to give it a try.

johannes-wolf commented 1 year ago

I am closing this, as we (@fenjalien and I) decided to not use an SVG backend (yet).

fenjalien commented 1 year ago

These are the rough points about it:

We basically don't get any benefit, what svg does provide we've already figured out in a way that works. So if we do spend the effort and time reworking we don't gain enough. There's also still talk of Typst getting improved drawing tools in the future which we may want to switch to. So in the end its too much of a risk of wasted effort.

some of these are null points but would annoy me as we implement it