summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2006-05-04Flesh out the documentation for cairo_push_group, cairo_pop_group and friendsCarl Worth1-20/+99
2006-05-04Fix the XCB backend build for the XCB 0.9 release.Ian Osgood1-6/+6
* use split out xcb-render package * fix deprecated calls * use XCB-specific symbols
2006-05-04Remove trailing comma in enum to pander to non-C99-conformant compilersCarl Worth1-1/+1
2006-05-04SVG: Fix the previous fix for xlink namespace.Emmanuel Pacaud1-15/+19
It seems libxml2 2.6.24 now requires a node using xlink namespace to be linked to a node where it can find this namespace.
2006-05-04Clean up error management of xlib surface getter functions.Carl Worth2-35/+34
2006-05-04Add Xlib surface getter functions.Robert O'Callahan2-0/+81
Add the following five functions: cairo_public Display * cairo_xlib_surface_get_display (cairo_surface_t *surface); cairo_public Drawable cairo_xlib_surface_get_drawable (cairo_surface_t *surface); cairo_public Screen * cairo_xlib_surface_get_screen (cairo_surface_t *surface); cairo_public Visual * cairo_xlib_surface_get_visual (cairo_surface_t *surface); cairo_public int cairo_xlib_surface_get_depth (cairo_surface_t *surface);
2006-05-04SVG: Fix xml namespace declaration.Emmanuel Pacaud1-10/+14
It looks like since libxml2 2.6.24, we can't just use xmlSetProp for namespace declaration anymore.
2006-05-04Add missing prototype for _cairo_clip_translateCarl Worth1-0/+5
2006-05-04Rename cairo_rectangle_t to cairo_rectangle_fixed_t.Robert O'Callahan31-360/+358
This is in preparation for a later function addition for extracting clip rectangles from a cairo_t, (which will add a public cairo_rectangle_t).
2006-05-04Fix up clip at pop_group time, to keep it in surface backend coordinatesVladimir Vukicevic4-30/+93
We keep the clip in surface-backend coordinates always, so it needs fixing whenever we change the target surface out in the gstate. The only place this happens is in push_group, so fix it as part of gstate_redirect().
2006-05-04Implement push_group/pop_groupVladimir Vukicevic5-108/+330
This patch adds the following API calls: cairo_push_group cairo_push_group_with_content cairo_pop_group cairo_pop_group_to_source cairo_get_group_target These methods support implementing layers on top of a cairo context, allowing for drawing with transparency and temporary buffering. cairo_get_group_target allows an app to get access to the actual surface created by the last push_group call, in case itneeds to perform native drawing to it.
2006-05-04Implement the device_offset functionality at surface, not gstate layerCarl Worth11-148/+417
This is a mega-patch that has the advantage that the entire test suite passes both immediately before and immediately after this commit. The disadvantage of the mega-patch is that it does not reflect the development history of the device-offset branch, (with its various fumblings and flailings). To capture that history, we will next merge in that branch.
2006-05-03Quiet some 'may be used uninitialized' warnings.Carl Worth2-4/+4
2006-05-03PDF: Add new cairo_pdf_surface_set_size for doing per-page size changesCarl Worth2-15/+80
2006-05-03PS: Use ceil, not rounding when computing integers for BoundingBoxCarl Worth1-4/+4
2006-05-03SVG: Emit "svg" version in document_finish.Emmanuel Pacaud1-2/+3
At least when there's something valid in document->svg_version.
2006-05-03SVG: Only "comp-op" property when svg_version >= 1.2Emmanuel Pacaud1-5/+8
2006-05-03SVG: Emit correct version property of "svg" element.Emmanuel Pacaud1-1/+8
2006-05-03PS: Add three new public functions for emitting DSC comments.Carl Worth5-8/+287
This commit adds the following new functions to the cairo-ps API: cairo_ps_surface_dsc_comment cairo_ps_surface_dsc_begin_setup cairo_ps_surface_dsc_begin_page_setup Many thanks are due to Michael Sweet who provided invaluble guidance during the design of this API. It is hoped that with this API in place, basically all printer control that is likely to be desired to be performed with cairo PostScript output is now possible. This commit augments the ps-features test to exercise the new API.
2006-05-02SVG: Really use width and height in point unit.Emmanuel Pacaud1-2/+23
I guess it makes more sense to use a unit for specifying image size that doesn't depend on context.
2006-05-02Merge branch 'master' of git+ssh://emmanuel@git.cairographics.org/git/cairoEmmanuel Pacaud3-18/+101
2006-05-02SVG: Minor documentation fixes.Emmanuel Pacaud1-3/+5
2006-05-02PS: Add cairo_ps_surface_set_size along with ps-features testCarl Worth3-18/+101
Add a new cairo_ps_surface_set_size which can be used to produce a PostScript file consisting of pages of various different sizes (or orientations). Also add a new test (ps-features.c) for testing this and subsequent ps-specific function calls.
2006-05-02atsui: Add missing check of return-value of malloc.Carl Worth1-1/+7
This addresses the original problem noted in mozilla's bug #336129: Missing out-of-memory check at gfx/cairo/cairo/src/cairo-atsui-font.c:185 https://bugzilla.mozilla.org/show_bug.cgi?id=336129 This also adds a comment pointing out another malloc that is not checked, (but does not fix it).
2006-05-02Make backend-specific function set a surface error on type mismatch.Carl Worth4-11/+19
If any backend-specific, surface-modifying function is called with the wrong surface type we set an error on that surface.
2006-05-02SVG: Rework of API for SVG selection.Emmanuel Pacaud2-144/+106
I've removed cairo_svg_surface_create_xxx functions, and instead implemented the following ones: cairo_svg_surface_restrict_to_version cairo_svg_get_versions cairo_svg_version_to_string
2006-05-01Don't return void from void-returning function (fix #6792).Carl Worth1-1/+1
It's a dumb part of the C standard and it's even dumber when compilers are picky about it. But oh, well.
2006-05-01Fix silly typo from previous commit.Carl Worth1-3/+3
2006-05-01Support multiple glyph image formats within the same font (fix #4705).Carl Worth1-13/+48
If we find a glyph image of a format that is different from the font's format, then we use a temporary image and convert to the font's format. This provides a simple fix for the crash identified in bug #4705: crash at XRenderAddGlyphs https://bugs.freedesktop.org/show_bug.cgi?id=4705 A later improvement would guarantee that the "font's format" was carefully chosen to be able to contain all glyphs in the font without information loss.
2006-05-01SVG: Correct use of paginated surface. Fix emit of alpha filter.Emmanuel Pacaud1-12/+13
2006-05-01SVG: Trivial indentation and comment fixes.Emmanuel Pacaud1-13/+18
2006-05-01SVG: Remove outdated comment.Emmanuel Pacaud1-4/+0
2006-05-01SVG: Fix error handling in create_for_document and in composite_image_pattern.Emmanuel Pacaud1-8/+12
2006-05-01SVG: Add an additionnal API for creating SVG 1.1 or 1.2 files.Emmanuel Pacaud2-26/+156
And update documentation.
2006-05-01SVG: Some variable/type renaming.Emmanuel Pacaud1-25/+25
2006-05-01SVG: Reenable optimisation of CLEAR and SOURCE in paint when there'sEmmanuel Pacaud1-3/+4
no active clipping path.
2006-05-01SVG: Code cleanup.Emmanuel Pacaud1-4/+1
2006-05-01SVG: Initial support of operators support via image fallbacks.Emmanuel Pacaud1-33/+67
We need to add a public API that will let user select a compatibility level regarding produced SVG files. This patch also plugs a memleak.
2006-05-01SVG: Sort of working implementation of a SVG backend with paginated surfaceEmmanuel Pacaud1-37/+97
support. Unoptimized and with memory leaks.
2006-05-01SVG: First pass for analyze-surface supportEmmanuel Pacaud1-7/+85
2006-05-01Copy content property when doing a snapshot of a meta surface.Emmanuel Pacaud1-0/+1
2006-04-28Fix PS Surface MemleakHenning Noren1-1/+14
Fixes leak of 16 bytes when calling _cairo_ps_surface_finish by never freeing the closure allocated in _word_wrap_stream_create.
2006-04-27Correct documentation to say "user space", not "user-space" where appropriate.Carl Worth1-5/+5
2006-04-27Optimisation of CLEAR operator in meta-surface.Emmanuel Pacaud2-1/+16
This optimisation takes care to not replay what was done before surface is cleared. We don't erase recorded commands since we may have earlier snapshots of this surface. (cherry picked from 926e2494ca2211e9117ab70fc427208d125e1bd5 commit)
2006-04-27Implement paginated create_similar, moving similar images down to PS and PDF.Emmanuel Pacaud3-12/+19
The new paginated create_similar simply forwards to target backend create_similar. We maintain the fact that PS and PDF surfaces are returning image surfaces for create_similar by moving that explicitly to their own create_similar functions. (This commit is the combination of the following original commits: 6b69e8c012adb4f2fc2ee9c1579fed8214e8f510 2589db92a4395f8e900dbc4eafc45982f0d985d3 )
2006-04-27paginated: Remove memory leak of analysis surface from _paint_pageCarl Worth1-0/+2
Thanks to Henning Noren <henning.noren.402@student.lu.se> for pointing this out.
2006-04-27Add reference to cairo_surface_set_user_data in docs. for ↵Carl Worth1-0/+3
cairo_image_surface_create_for_data
2006-04-26Remove cairo.def from the generated tar file. It's not useful there.Carl Worth1-3/+0
2006-04-26WIN32: Define SHADEBLENDCAPS and SB_NONE if they are not defined. (from Tor ↵Behdad Esfahbod1-0/+8
Lillqvist) (cherry picked from d3ff5228a205ffb29e85907830d5fc72e2ef5358 commit)
2006-04-25Support fontconfig embeddedbitmap option/handle transformation issue as well.Zhe Su1-3/+21