Skip to content

Svg icon is not properly rendered in Typst output #10962

Answered by cderv
oliviermeslin asked this question in Q&A
Discussion options

You must be logged in to vote

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 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

Note: Work on SVG export is ongoing and there might be visual inaccuracies in the resulting PDF. Make sure to double-check embedded SVG images. If you have an issue, also feel free to report it on GitHub.

I don't see any issue on size. but maybe this pyt…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@oliviermeslin
Comment options

@oliviermeslin
Comment options

@cderv
Comment options

cderv Oct 4, 2024
Maintainer

@oliviermeslin
Comment options

@mcanouil
Comment options

mcanouil Oct 4, 2024
Collaborator

Answer selected by oliviermeslin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants