brummer10 / XUiDesigner

A WYSIWYG LV2 GUI/plugin creator tool
BSD Zero Clause License
100 stars 3 forks source link

SVG support #2

Closed falkTX closed 2 years ago

falkTX commented 2 years ago

Hi, is it possible to support SVG in addition to PNG? More and more people are using high-dpi screens, even on Linux. With PNGs we could use a 1x and 2x scale of the same assets, but then fractional scale factors dont work so well. Shipping with resources for all scale factors does not.. scale well. So SVG would be nice (or others ways to scale up, doesnt have to specifically be SVG)

brummer10 commented 2 years ago

So, SVG support is on it's way. I've implemented it via nanosvg https://github.com/memononen/nanosvg in libxputty and it works so far. I do base64 encoding on the SVG to allow embedding the file into the binary. For loading into a cairo surface it will be decoded from the binary. Now I need to implement SVG handling in XUiDesigner so that SVG's could be finally used to create LV2 GUI's.

brummer10 commented 2 years ago

Proper SVG support is now implemented.