我想要:
>在Linux / Unix / Mac(无处不在抗锯齿)下运行顺利
>开源
>与标准SVG(例如不透明度,嵌入式光栅图形)兼容
>使用现代动态语言(Python,Ruby,Lisp等)
>例如在这个意义上,基于C的解决方案将是完美的
那么,我的选择是什么?
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等等.
还有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.