How to override the font for svg images?

I have a document with .svg images containing text. The text should be Verdana font (I included the .ttf font file in my project), but is overridden by default typst font. How can I force the text in my .svg image to be Verdana? Thank you

Oh it was easy actually.

show image:  set text(font:  "Verdana")

Beware, if you use show figure instead, it will affect also tables and captions. If you want to select content of svg images only, use image.

1 Like