How to display interactive SVG in a window on Linux?

倖福魔咒の 提交于 2019-12-07 09:22:40

问题


I really like SVG, it's very nice to draw with it. So far i've made static images using Inkscape. I'd like to make them interactive though.

I did some trials, following tutorials like this one. But i can see a SVG and interact with it in my web browser only. I'd like to make such things in a window on the desktop. There are drawing kits like Cairo or OpenGL, but then i have to draw from code. It seems a more clever thing to use SVG (which was drawn using Inkscape).

What does it require to view interactive/animated SVG in a plain desktop window/canvas? I've seen some modules to convert SVG to Cairo: but is there a direct SVG intepreter for Linux?


回答1:


The problem is that the effects require javascript and cascading style-sheets, which basically means complete web rendering engine. So the easiest way is to use one, either webkit or gecko (webkit has probably better support for SVG these days, plus I can't find package of gecko right now).



来源:https://stackoverflow.com/questions/6186335/how-to-display-interactive-svg-in-a-window-on-linux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!