Currently, on my R 2.10.1 installation on Windows XP,
capabilities()["cairo"]
returns False. Loading the package cairoDevice fails with the message "LoadLibrary failure" however the shared library "C:/Programme/R/R-2.10.1/library/cairoDevice/libs/cairoDevice.dll" is there. Any ideas how I can make cairo work on windows?
...
When I have all my cairo drawing commnds finihed how can I added it to a pixmap so that it will be drawn later. I am using cairomm and gtkmm
...
Hi Experts,
I want to use cairo to enhance gtkentry look. For this, I have connected a callback to 'expose-event'. In callback, I call gtkentry's original expose-event handler. After that, I create cairo context and draw some lines and destroy the cairo. I return 'TRUE' as return value of callback function so that expose-event does not...
I have been trying to run configure to prepare the make file for GTK 2,9 on a fresh Linux box (running Ubuntu 10.04 Lucid Lynx).
it complained about some dependencies, including:
glib-2.0
atk (1.29.2)
pango (1.20)
cairo (1.6)
I managed to find the glib 2.22.0, downloaded the atk but did not compile yet, did not start the pango yet, ...
I'm trying to install GTK-DFB and cairo is a requirement. When I try to build it from source, it throws:
checking for cairo's PNG functions feature...
configure: WARNING: Could not find libpng in the pkg-config search path
checking whether cairo's PNG functions feature could be enabled... no
configure: error: recommended PNG functions ...
Hello,
I'm embedding WebKit in a Windows C++ Application. I'm using the Cairo port. It works fine.
I'd like to disable the scrollbars that appear when there's more data that the client area can display. Like the iPhone, the iPhone does not have scrollbars, scrolling is implemented differently.
How can I disable the scrollbars programa...
stroke() in Cairo applies a stroke of a single specified width to a line path.
I'd like to draw a path with a varying width (thinner when the user was drawing faster, thicker when slower). Is this possible in Cairo?
...
I have code which generates a Cairo ImageSurface, and I expose it like so:
def preview(...):
surface = cairo.ImageSurface(cairo.FORMAT_ARGB32, width, height)
...
cherrypy.response.headers['Content-Type'] = "image/png"
return surface.get_data()
preview.exposed = True
This doesn't work (browsers report that the image has...
I'm using Pango and Cairo. Is there a simple way to get a list of available fonts? I'm willing to use another library, provided the solution is fairly simple.
...
So I'm trying to set up a mask in Cairo, but can't get it to make any difference. Below I have a simple program based off the one here: http://snipplr.com/view/22584/cairo-hello-world-examble/.
I'm setting a completely transparent mask so nothing should be getting drawn, but it doesn't seem to have any effect - the text still gets drawn...
I'm trying to compile cairo together with pango to enable advanced font rendering in my application. I got it to work, but I cannot use unicode characters (i.e. I tested with Chinese character).
When I run my application I get this message:
(process:42776): Pango-WARNING **: Failed to load Pango module '/Users/pollux/Downloads/cairo_p...
I am using python-clutter 1.0
My question in the form of a challenge
Write code to allow zooming up to a CairoTexture actor, by pressing a key, in steps such that at each the actor can be re-drawn (by cairo) so that the image remains high-res but still scales as expected, without re-sizing the actor.
Think of something like Inkscape a...
Hello,
In my gtk+ application i need to split image with high resolution. How can i make it with cairo? Where can i find example?
Thank you
...
I'm having difficulties building the pangocairo bindings on my OSX 10.6 machine and would like to know how to proceed.
To sketch the background, I'm writing a wxwindows application in Python with wxpython that draws on a cairo canvas. I have been able to compile all dependencies for this with the extra difficulty that I need 32bit (inst...
I'm trying to write a Cairo program to black-fill the entire image and then draw another rectangle inside of it a different color. Eventually, I'm going to make this a program that generates a .png of the current time that looks like a digital clock. For now, this is where I'm getting hung up.
Here's my code:
#include <stdio.h>
#includ...
Is there an off the shelf textarea class that uses Cario (targetting OpenGL) as the renderer?
By textarea I mean a multiline textfield with wordwrap and width and height constraints.
The code that needs to use this class is written in C++.
...
I'm looking for a way to draw smooth animations in Python. I want to use cairo, partly because I like the sub-pixel filtering and partly because I'm familiar with the API. My first approach was to use a GTK.DrawingArea as the target for a cairo surface. While the drawing was quick I couldn't find any reliable way to tie the display / buf...
Hi,
I render a huge SVG file with a lot of elements with Cairo, OpenGL and rsvg. I draw svg on cairo surface via rsvg and create an OpenGL texture to draw it. Everything is fine. And now I have to interact with elements from SVG. For example, I want to guess an element by coordinates. And I want to change the background of some path in S...
Hi, I am just getting started using pycairo, and I ran into the following interesting error. The program I write creates a simple gtk window, draws a rectangle on it, and then has a callback to draw a random line on any kind of keyboard input. However, it seems that with each keyboard input, I have to create a new context, or I get an er...
I'm trying to distribute my app's dependencies with the app.
I've got the macports packages librsvg, boost, and cairo installed 64-bit-only on my Snow Leopard system. When I create an .app bundle of my program, it does not work on machines without macports and the relevant libraries installed because they are not included with the app, ...