loadFont(), loadImage() -> loadSvg()?

The migration guide for v2 tells us to not store fonts or images across frames. I just wanted to be sure if this also applies to loadSvg(), which I use like setSvg(loadSvg(...)) in my controls derived from SvgKnob, SvgPort etc. Thanks!

It’s pretty unclear to me. Try it in a VST and make sure it works, right?

I use loadSvg() only once and it works.

Per Andrew, SVG images only exist in memory, and are not loaded in a GL context. Therefore, the considerations mentioned in the migration guide only apply to fonts and images loaded with loadFont and loadImage respectively.

5 Likes