[cairo] Cairo fails to render under Windows/MSVC

Tristam MacDonald swiftcoder at gmail.com
Sat May 29 13:41:00 PDT 2010


I have a minimal sample using pango + cairo (attached), copied pretty
much verabtim from a pangocairo tutorial on the web.

This sample functions perfectly under Linux, writing out a png file
containing a coloured and outlined rectangle, and a line of text.

However, when compiled on Windows using MSVC, and linking against the
pre-built cairo and pango binaries from GTK+, it only renders the
background. You can double check this by changing the background color
- this always renders out perfectly, but the fill, stroke and text
never appear.

Any ideas why this might be happening, given that the program compiles
and runs without error, and does successfully render the background
and output it as a png? I thought my Windows-specific hurdles were
over when I managed to get it to compile, but apparently that is not
the case...

Thanks,

-- 
Tristam MacDonald
http://swiftcoder.wordpress.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: basic_example.cpp
Type: text/x-c++src
Size: 1229 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100529/bba3017a/attachment.cpp>


More information about the cairo mailing list