Questions tagged [cairo]

Cairo is a software library used to provide a vector graphics-based, device-independent API for software developers.

Cairo is a software library used to provide a vector graphics-based, device-independent API for software developers. It is designed to provide primitives for 2-dimensional drawing across a number of different backends. Cairo is designed to use hardware acceleration when available.

Although written in C, there are bindings for using the cairo graphics library from many other programming languages, including C++, Factor, Haskell, Lua, Perl, Python, Ruby, Scheme, Smalltalk and several others. Dual licensed under the GNU Lesser General Public License and the Mozilla Public License, cairo is free software.

Cairo Homepage includes documentation and examples.

1254 questions
19
votes
2 answers

Difference between GtkWindow and GdkWindow?

At the beginning of my Gtk-Gdk-Cairo-Pango app, I create the window: GtkWidget *window = gtk_window_new(GTK_WINDOW_TOPLEVEL); First, there is GtkWindow, but gtk_create_window returns GtkWidget, not GtkWindow, why? Then, some functions, like…
exebook
  • 32,014
  • 33
  • 141
  • 226
18
votes
2 answers

include cairo R on a mac

I'm trying to use 'Cairo' package in Rstudio, using the command install.packages('Cairo') and it goes through with no problem. I get this message- The downloaded binary packages are…
T.G.
  • 743
  • 3
  • 6
  • 27
18
votes
4 answers

Matplotlib PDF export uses wrong font

I want to generate high-quality diagrams for a presentation. I’m using Python’s matplotlib to generate the graphics. Unfortunately, the PDF export seems to ignore my font settings. I tried setting the font both by passing a FontProperties object to…
Konrad Rudolph
  • 530,221
  • 131
  • 937
  • 1,214
17
votes
3 answers

Render cairo surface directly to OpenGL texture

I'm using cairo (http://cairographics.org) in combination with an OpenGL based 3D graphics library. I'm currently using the 3D library on Windows, but I'm hoping to receive an answer that is platform independent. This is all done in c++. I've got…
Remco
  • 224
  • 2
  • 8
17
votes
3 answers

Putting .SVG images into tkinter Frame

I have been trying to put the image from https://betacssjs.chesscomfiles.com/bundles/web/favicons/safari-pinned-tab.f387b3f2.svg into a Tkinter frame. I found from the post here that it is possible with the help from rsvg and cairo. I was using…
Andereoo
  • 834
  • 1
  • 8
  • 24
17
votes
3 answers

How to fix "failed to load cairo DLL" in R?

I am running into this warning message that will stop execution. Saving 8.04 x 5.67 in image Warning messages: 1: In dev(file = filename, width = dim[1], height = dim[2], ...) : unable to load shared object…
Nicholas Hayden
  • 473
  • 1
  • 3
  • 24
17
votes
2 answers

Cairo GTK draw a line with transparency (like a highlighter pen)

I am trying to create a simple drawing application using Python, GTK3 and cairo. The tool should have different brushes and some kind of a highlighter pen. I figured I can use the alpha property of the stroke to create it. However, the connecting…
oz123
  • 27,559
  • 27
  • 125
  • 187
17
votes
2 answers

Building Pango with Cairo support

I'm attempting to build a new version of wireshark 1.10 on a RHEL5 box with the intent of making an RPM so that customers that I support can install it. Possibly others if I can find a place to host it. WS1.10 depends on GTK+ as well as several…
Thomas Lann
  • 1,124
  • 5
  • 17
  • 35
16
votes
3 answers

How to pip install cairocffi?

How do I install cairocffi through pip? cairocffi is a CFFI-based drop-in replacement for Pycairo https://github.com/SimonSapin/cairocffi. I'm trying to install it on Ubuntu 14.04: alvas@ubi:~$ cat…
alvas
  • 115,346
  • 109
  • 446
  • 738
16
votes
3 answers

R Cairo installation without apt-get, sudo

I am working on a headless ubuntu machine with most of the cairo requirements preinstalled, but I am stumbling on getting R to use Cairo. Does anyone know what flags or additional packages I need to set/install in order to have install.packages…
bwarren2
  • 1,347
  • 1
  • 18
  • 36
16
votes
5 answers

Cairo and Qt integration

I want to use Cairo graphics library whith Qt, but I can't find any documenattion. I just want to make the GUI whith Qt and use Cairo for drawing graphics in a Qt window. Thanks.
Andrei
  • 4,289
  • 4
  • 25
  • 23
16
votes
2 answers

How to set cairo as default backend for x11() in R?

I am using ggplot2 on ubuntu 12.04. By default my x11 type is set to Xlib. So when I use a smoother in qplot, I get an error like: "semi-transparency is not supported on this device: reported only once per page". However, if I call…
signalseeker
  • 4,100
  • 7
  • 30
  • 36
15
votes
1 answer

Skia vs Cairo vs Direct2D, which is the most feature rich?

A just curious question. I'm aware that: Skia, Cairo: library Direct2D: API But without any additional components, exclusively on Windows platform, which bears the most features? I'm not talking about performance or programming simplicity. Is…
Abrar Borno
  • 373
  • 1
  • 3
  • 10
15
votes
5 answers

how to install node js canvas on windows

I'm trying to get working canvas on node js. I'm using Windows Vista. After basic approach npm install canvas failed (see error below), I have looked up some tutorials, here is what I have…
venca163
  • 243
  • 1
  • 2
  • 9
14
votes
2 answers

R plots some unicode characters but not others

our sysadmin just upgraded our operating system to SLES12SP1. I reinstalled Rv3.2.3 and tried to make plots. I use cairo_pdf and try to make a plot with the x-label being \u0298 i.e. the solar symbol, but it doesn't work: the label just comes out…
rhombidodecahedron
  • 7,693
  • 11
  • 58
  • 91
1
2
3
83 84