Registry / other / cairo
library1.18.4vcpkgunverified

Cairo is a 2D graphics library with support for multiple output devices including X11, Quartz, Win32, image buffers, PostScript, PDF, and SVG.

vcpkg install cairo
INSTALL
IMPORT
SIG · CAIRO
C
cairo
othercppv1.18.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cairo.h
#include <cairo.h>

Creates a PDF with a blue rectangle using Cairo

#include <cairo.h> #include <cairo-pdf.h> int main() { cairo_surface_t *surface = cairo_pdf_surface_create("output.pdf", 100, 100); cairo_t *cr = cairo_create(surface); cairo_rectangle(cr, 10, 10, 80, 80); cairo_set_source_rgb(cr, 0, 0, 1); cairo_fill(cr); cairo_destroy(cr); cairo_surface_destroy(surface); return 0; }
Debug
Known issues
gotchaRequires separate backend libraries (e.g., libpng, fontconfig) for full functionality
fix
Ensure all required dependencies are installed and linked
affects: all
Upgrade
Version history
1.18.4latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Amazon
1
OpenAI (training)
1
Resources

No resource links recorded.

cairo — pip install cairo · libregistry