用户界面 – 什么是编写基于SVG的桌面应用程序的选项?

说,我想编写一个大量使用SVG的桌面应用程序.我对渲染引擎,GUI工具包,库等的选择是什么?

我想要:

>在Linux / Unix / Mac(无处不在抗锯齿)下运行顺利
>开源
>与标准SVG(例如不透明度,嵌入式光栅图形)兼容
>使用现代动态语言(Python,Ruby,Lisp等)

>例如在这个意义上,基于C的解决方案将是完美的

那么,我的选择是什么?

我会建议 cairo,开罗是一个2D图形库,支持SVG文件输出.

The cairo API provides operations similar to the drawing operators of
PostScript and PDF. Operations in cairo including stroking and filling
cubic Bézier splines,transforming and compositing translucent images,
and antialiased text rendering. All drawing operations can be
transformed by any affine transformation (scale,rotation,shear,
etc.)

开罗被实现为以C编程语言编写的库,但绑定可用于多种不同的programming languages.其中包括Perl,Python,Ruby等等.

它还有几个工具包绑定.例如GTK+ 2.8+全面支持开罗.

还有OpenGL的实验后端.其中的优点包括轻松集成功能,如PS-,PDF-,SVG支持到您的OpenGL应用程序(可能需要额外的库).

Cairo is free software and is available to be redistributed and/or modified under the terms of either the GNU Lesser General Public License (LGPL) version 2.1 or the Mozilla Public License (MPL) version 1.1 at your option.

相关文章

用的openwrt路由器,家里宽带申请了动态公网ip,为了方便把2...
#!/bin/bashcommand1&command2&wait从Shell脚本并行...
1.先查出MAMP下面集成的PHP版本cd/Applications/MAMP/bin/ph...
1、先输入locale-a,查看一下现在已安装的语言2、若不存在如...
BashPerlTclsyntaxdiff1.进制数表示Languagebinaryoctalhexa...
正常安装了k8s后,使用kubect工具后接的命令不能直接tab补全...