Bug 5727 - Cairomm: Add examples for new surface types
Summary: Cairomm: Add examples for new surface types
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.1.1
Hardware: x86 (IA32) All
: high normal
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-26 11:19 UTC by Jonathon Jongsma
Modified: 2006-01-26 08:24 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
patch for ChangeLog, configure.in, and examples/Makefile.am (2.02 KB, patch)
2006-01-26 11:20 UTC, Jonathon Jongsma
Details | Splinter Review
New files for pdf, ps, and svg test programs (1.17 KB, application/x-gzip)
2006-01-26 11:21 UTC, Jonathon Jongsma
Details

Description Jonathon Jongsma 2006-01-26 11:19:35 UTC
Attached is a patch and a tarball of new files to add example / test programs
for pdf, ps, and svg surface types.
Comment 1 Jonathon Jongsma 2006-01-26 11:20:26 UTC
Created attachment 4471 [details] [review]
patch for ChangeLog, configure.in, and examples/Makefile.am
Comment 2 Jonathon Jongsma 2006-01-26 11:21:28 UTC
Created attachment 4472 [details]
New files for pdf, ps, and svg test programs

Extract this tarball in the examples/ directory.  I don't have CVS access yet,
so I can't commit myself.
Comment 3 Jonathon Jongsma 2006-01-26 12:27:55 UTC
By the way, these are the examples that suffer from the issue described in
http://lists.freedesktop.org/archives/cairo/2006-January/006191.html so they
need some autotools work to get them to work right.
Comment 4 Murray Cumming 2006-01-27 02:55:21 UTC
Committed. I have no build problems and the examples run. Are you doing an
autogen.sh?
Comment 5 Jonathon Jongsma 2006-01-27 03:11:01 UTC
Really?  odd.  It builds fine for me, but doesn't run correctly.  I am doing
./autogen.sh.  Do the examples produce files that look reasonably like eachother
(other than backend-specific differences) and like the file in the png example?  
Maybe there's an issue with my development environment.  I'll look into it a bit
more when I get home tonight.

By the way, the ps and svg surface examples were copied from the PDF example,
and I just noticed that the svg and ps surface examples contain the following
lines near the end:

    std::cout << "You must compile cairo with PDF support for this example to work."
        << std::endl;

These should be changed to SVG or PostScript instead of PDF.  Sorry about that.
Comment 6 Murray Cumming 2006-01-27 03:15:28 UTC
Yes, they run fine, apart from the PDF one, because I don't have PDF compiled
into cairo.

The images all looks the same.

I fixed the messages.

I'll do a new release soon, if that's OK.
Comment 7 Jonathon Jongsma 2006-01-27 03:24:54 UTC
It'd be nice to have an example for an XlibSurface and a Win32Surface (since I
believe those are really the only surfaces officially supported by C cairo at
the moment besides ImageSurface), but I'm not sure that I'll get around to them
soon.  Perhaps they could be borrowed and adapted from the C cairo examples (if
they exist), but I don't think it's worth waiting for that for a release.  I say
go for it.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.