Svg icon is not properly rendered in Typst output #10962
-
DescriptionI just discovered that the official SVG Python logo is not properly rendered in Typst output (the bottom and the right parts are missing), whereas it is fine in html output. I do not know whether this is related to the Quarto -> Typst conversion process, or to an internal Typst issue, or to the SVG file itself. Do you have an idea what might be going on? Below are two MWE.
Results of
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
I believe this is related to typst handling of SVG. When providing a svg through a URL, quarto does download the SVG. The version download is correct. Here it is: But when loading this logo file in https://typst.app and using it in a document #image("python-logo-only.svg") Even playing with size or SVG is kind of new in typst. In their doc: https://typst.app/docs/reference/visualize/image/, they say
I don't see any issue on size. but maybe this python logo has some specific content that makes typst trip. This would probably be something to see with them first. |
Beta Was this translation helpful? Give feedback.
I believe this is related to typst handling of SVG.
When providing a svg through a URL, quarto does download the SVG. The version download is correct. Here it is:
But when loading this logo file in https://typst.app and using it in a document
Even playing with size or
fit
option I can't make this works.SVG is kind of new in typst. In their doc: https://typst.app/docs/reference/visualize/image/, they say
I don't see any issue on size. but maybe this pyt…