Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A fork of Cairo optimizing use of the GL backend
C C# C++ Shell JavaScript Objective-C Other

gl: Prevent border color bleeding in image atlas

In a normal image, sampling takes at a center of a pixel. If samples happens
around border, the sampling will uses the border color instead of
reaching beyond border.  However, with atlas, "image border" is not
the atlas border.  This becomes problematic bcause sampling at "image
border" reaches beyond border.  To avoid this problem, we inset the "image
border" by 0.5 so that sampling always occur inside desired image.
latest commit de012982d1
@henrysong henrysong authored
Failed to load latest commit information.
boilerplate gl: add support for OpenGL ES 3.0
build gl: add support for OpenGL ES 3.0
doc typo
packaging Add RPM packaging for Tizen
perf perf: Synchronize before stopping the timers
src gl: Prevent border color bleeding in image atlas
test test: remove unused variable
util script: Set decompression length prior to calling decompressors
.gitignore gitignore: refresh
AUTHORS AUTHORS: Use correct email for me
BIBLIOGRAPHY BIBLIOGRAPHY: Cite Hars & Petruska's Pseudorandom Recursions paper.
BUGS Add notes on reporting bugs to BUGS file and move bugs listed there t…
COPYING Add a COPYING file to each aux. source directory
COPYING-LGPL-2.1 Update FSF address
COPYING-MPL-1.1 Add the MPL as a new license option, in addition to the LGPL.
HACKING Fix various README typos
INSTALL [INSTALL] Mention pkg-config requirement
KNOWN_ISSUES Add a KNOWN_ISSUES file to track WONTFIX(?) bugs Update autotools configuration
Makefile.win32 build: Make 'all' the default target in the base Makefile.win32 build
NEWS 1.12.14 release
PORTING_GUIDE Update name from "0.5 porting guide" to "1.0 porting guide."
README README: Note that xcb is no longer experimental
README.win32 [README.win32] Update wording from Tor Lillqvist
RELEASING [RELEASING] Correct a few minor typos.
acinclude.m4 [build] Remove a level of quoting from CAIRO_PARSE_VERSION. build: Do not replace existing files
cairo-glesv3-uninstall.pc gl: add support for OpenGL ES 3.0
cairo-version.h 1.12.14 release gl: add support for OpenGL ES 3.0


Cairo - Multi-platform 2D graphics library

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, BeOS, OS/2, and DirectFB.

Cairo is designed to produce consistent output on all output media
while taking advantage of display hardware acceleration when available
(for example, through the X Render Extension).

The cairo API provides operations similar to the drawing operators of
PostScript and PDF. Operations in cairo include 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,

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
somewhere---let us know and we'll try to fix it next time around.

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

Where to get more information about cairo
The primary source of information about cairo is:

The latest versions of cairo can always be found at:

Documentation on using cairo and frequently-asked questions:

Mailing lists for contacting cairo users and developers:

Roadmap and unscheduled things to do, (please feel free to help out):

The set of libraries needed to compile cairo depends on which backends
are enabled when cairo is configured. So look at the list below to
determine which dependencies are needed for the backends of interest.

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, (with image, png, pdf,
PostScript, svg, and xlib surface backends, and the freetype font
backend), the following sample commands will install necessary

    Debian (and similar):

	apt-get install libpng12-dev libz-dev libxrender-dev libfontconfig1-dev

    Fedora (and similar):

	yum install libpng-devel zlib-devel libXrender-devel fontconfig-devel

(Those commands intentionally don't install pixman from a distribution
package since if you're manually compiling cairo, then you likely want
to grab pixman from the same place at the same time and compile it as

Supported, "standard" surface backends
	image backend (required)
	pixman >= 0.20.2

	png support (can be left out if desired, but many
	-----------  applications expect it to be present)

	pdf backend

	postscript backend

	svg backend

Supported, "platform" surface backends
	xlib backend

	xlib-xrender backend
	Xrender >= 0.6

	quartz backend
	MacOS X >= 10.4 with Xcode >= 2.4

	win32 backend
	Microsoft Windows 2000 or newer[*].

	xcb backend

Font backends (required to have at least one)
	freetype font backend
	freetype >= 2.1.9

	quartz-font backend
	MacOS X >= 10.4 with Xcode >= 2.4

	win32 font backend
	Microsoft Windows 2000 or newer[*].

	[*] 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
	    work still needs to be done to get cairo running in those

	    Cairo can be compiled on Windows with either the gcc
	    toolchain (see or with Microsoft
	    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.

Experimental surface backends
	beos backend
	No dependencies in itself other than an installed BeOS system, but cairo
	requires a font backend. See the freetype dependency list.

	os2 backend
	Cairo should run on any recent version of OS/2 or eComStation, but it
	requires a font backend. See the freetype dependency list. Ready to use
	packages and developer dependencies are available at Netlabs:

See the INSTALL document for build instructions.

Cairo was originally developed by Carl Worth <> and
Keith Packard <>. Many thanks are due to Lyle Ramshaw
without whose patient help our ignorance would be much more apparent.

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.
Something went wrong with that request. Please try again.