Cairo (graphics)
≈ 2 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
Cairo (stylized as cairo) is an open-source graphics library that provides a vector graphics-based, device-independent API for two-dimensional drawing. Written in C, it supports output to multiple backends including X11, Quartz, Win32, SVG, PDF, and PostScript. Cairo uses hardware acceleration when available. Cairo is used by GTK (versions 2.8 through 4.x ), the Gecko layout engine in Mozilla Firefox, WebKit, Poppler, and Inkscape, among other projects. The library is dual-licensed under the GNU Lesser General Public License version 2.1 and the Mozilla Public License 1.1. The name derives from the project's original name "Xr," interpreted as the Greek letters chi and rho, which together sound like "Cairo", not to be confused with the religious Chi Rho.
Cairo (stylized as cairo) is an open-source graphics library that provides a vector graphics-based, device-independent API for two-dimensional drawing. Written in C, it supports output to multiple backends including X11, Quartz, Win32, SVG, PDF, and PostScript. Cairo uses hardware acceleration when available. Cairo is used by GTK (versions 2.8 through 4.x ), the Gecko layout engine in Mozilla Firefox, WebKit, Poppler, and Inkscape, among other projects. The library is dual-licensed under the GNU Lesser General Public License version 2.1 and the Mozilla Public License 1.1. The name derives from the project's original name "Xr," interpreted as the Greek letters chi and rho, which together sound like "Cairo", not to be confused with the religious Chi Rho. include include int main(int argc, char **argv) { cairo_surface_t *surface = cairo_svg_surface_create("Cairo_example.svg", 100.0, 100.0); cairo_t *cr = cairo_create(surface); /* Draw the squares in the background */ for (int x = 0; x
Text derived from https://en.wikipedia.org/w/index.php?oldid=1374666018 under CC BY-SA 4.0; modifications have been made.