cairo/README

185 lines
6 KiB
Text
Raw Normal View History

2003-07-18 11:34:19 +00:00
Cairo - Multi-platform 2D graphics library
https://cairographics.org
2005-08-23 19:31:10 +00:00
What is cairo
=============
Cairo is a 2D graphics library with support for multiple output
devices. Currently supported output targets include the X Window
System (via both Xlib and XCB), quartz, win32, and image buffers,
as well as PDF, PostScript, and SVG file output. Experimental backends
include OpenGL.
2005-08-23 19:31:10 +00:00
Cairo is designed to produce consistent output on all output media
while taking advantage of display hardware acceleration when available
2005-08-24 09:12:37 +00:00
(for example, through the X Render Extension).
2005-08-23 19:31:10 +00:00
The cairo API provides operations similar to the drawing operators of
2007-07-04 07:09:00 -07:00
PostScript and PDF. Operations in cairo include stroking and filling
2005-08-23 19:31:10 +00:00
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.).
2005-08-23 19:31:10 +00:00
2005-08-23 19:54:11 +00:00
Cairo has been designed to let you draw anything you want in a modern
2D graphical user interface. At the same time, the cairo API has been
designed to be as fun and easy to learn as possible. If you're not
having fun while programming with cairo, then we have failed
2005-08-23 19:54:11 +00:00
somewhere---let us know and we'll try to fix it next time around.
2005-08-23 19:31:10 +00:00
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.
Where to get more information about cairo
=========================================
The primary source of information about cairo is:
https://cairographics.org/
2002-10-26 08:00:39 +00:00
The latest versions of cairo can always be found at:
2003-10-28 17:32:44 +00:00
https://cairographics.org/download
2003-10-28 17:32:44 +00:00
Documentation on using cairo and frequently-asked questions:
2005-08-23 19:31:10 +00:00
https://cairographics.org/documentation
https://cairographics.org/FAQ
2005-08-23 19:31:10 +00:00
Mailing lists for contacting cairo users and developers:
https://cairographics.org/lists
2005-08-23 19:31:10 +00:00
Roadmap and unscheduled things to do, (please feel free to help out):
2005-08-23 19:31:10 +00:00
https://cairographics.org/roadmap
https://cairographics.org/todo
Dependencies
============
The set of libraries needed to compile cairo depends on which backends
2008-04-06 01:57:45 -07:00
are enabled when cairo is configured. So look at the list below to
determine which dependencies are needed for the backends of interest.
2008-04-06 01:57:45 -07:00
For the surface backends, we have both "supported" and "experimental"
backends. Further, the supported backends can be divided into the
"standard" backends which can be easily built on any platform, and the
"platform" backends which depend on some underlying platform-specific
system, (such as the X Window System or some other window system).
As an example, for a standard Linux build similar to what's shipped by
your distro, (with image, png, pdf, PostScript, svg, and xlib surface
backends, and the freetype font backend), the following sample commands
will install necessary dependencies:
2008-04-06 01:57:45 -07:00
Debian (and similar):
apt-get build-dep cairo
2008-04-06 01:57:45 -07:00
Fedora (and similar):
yum install libpng-devel zlib-devel libXrender-devel fontconfig-devel
Technically you probably don't need pixman from the distribution since
if you're manually compiling Cairo you probably want an updated pixman
as well. However, if you follow the default settings and install pixman
to /usr/local, your Cairo build should properly use it in preference to
the system pixman.
2008-04-06 01:57:45 -07:00
Supported, "standard" surface backends
------------------------------------
image backend (required)
------------------------
pixman >= 0.30.0 https://cairographics.org/releases
2008-04-06 01:57:45 -07:00
png support (can be left out if desired, but many
----------- applications expect it to be present)
libpng http://www.libpng.org/pub/png/libpng.html
pdf backend
-----------
zlib http://www.gzip.org/zlib
postscript backend
------------------
zlib http://www.gzip.org/zlib
2008-04-06 01:57:45 -07:00
svg backend
-----------
2008-04-06 01:57:45 -07:00
[none]
2008-04-06 01:57:45 -07:00
Supported, "platform" surface backends
-----------------------------------
xlib backend
------------
X11 https://freedesktop.org/Software/xlibs
2008-04-06 01:57:45 -07:00
xlib-xrender backend
--------------------
Xrender >= 0.6 https://freedesktop.org/Software/xlibs
2008-04-06 01:57:45 -07:00
quartz backend
--------------
MacOS X >= 10.4 with Xcode >= 2.5
2008-04-06 01:57:45 -07:00
win32 backend
-------------
Microsoft Windows 2000 or newer[*].
xcb backend
-----------
XCB https://xcb.freedesktop.org
2008-04-06 01:57:45 -07:00
Font backends (required to have at least one)
---------------------------------------------
freetype font backend
---------------------
2008-04-06 01:57:45 -07:00
freetype >= 2.1.9 http://freetype.org
fontconfig http://fontconfig.org
2008-04-06 01:57:45 -07:00
quartz-font backend
-------------------
MacOS X >= 10.4 with Xcode >= 2.4
2008-04-06 01:57:45 -07:00
win32 font backend
------------------
2008-04-06 01:57:45 -07:00
Microsoft Windows 2000 or newer[*].
2008-04-06 01:57:45 -07:00
[*] The Win32 backend should work on Windows 2000 and newer
(excluding Windows Me.) Most testing has been done on
Windows XP. While some portions of the code have been
adapted to work on older versions of Windows, considerable
2008-04-06 01:57:45 -07:00
work still needs to be done to get cairo running in those
environments.
2008-04-06 01:57:45 -07:00
Cairo can be compiled on Windows with either the gcc
toolchain (see http://www.mingw.org) or with Microsoft
2008-04-06 01:57:45 -07:00
Visual C++. If the gcc toolchain is used, the standard
build instructions using configure apply, (see INSTALL).
If Visual C++ is desired, GNU make is required and
Makefile.win32 can be used via 'make -f Makefile.win32'.
The compiler, include paths, and library paths must be set
up correctly in the environment.
MSVC versions earlier than 7.1 are known to miscompile
parts of cairo and pixman, and so should be avoided. MSVC
7.1 or later, including the free Microsoft Visual Studio
Express editions, produce correct code.
2005-08-23 19:31:10 +00:00
Compiling
=========
See the INSTALL document for build instructions.
2002-10-26 08:00:39 +00:00
2002-10-26 08:00:39 +00:00
History
2005-08-23 19:31:10 +00:00
=======
Cairo was originally developed by Carl Worth <cworth@cworth.org> and
Keith Packard <keithp@keithp.com>. Many thanks are due to Lyle Ramshaw
without whose patient help our ignorance would be much more apparent.
2002-10-26 08:00:39 +00:00
2005-08-23 19:31:10 +00:00
Since the original development, many more people have contributed to
cairo. See the AUTHORS files for as complete a list as we've been able
to compile so far.