summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-06-08Use detected EGREP instead of generic grep1.10Dagobert Michelsen1-2/+2
https://bugs.freedesktop.org/show_bug.cgi?id=38069
2011-06-08image: Don't crash on weird pixman formatsBenjamin Otte1-7/+16
_pixel_to_solid() used to assert that it got a known cairo_format_t. However, this might not be the case when backends decide to use a pixman format that is not representable by a cairo format (X and DirectFB are examples for backends that do that). This patch makes _pixel_to_solid() return NULL in that case and fixes the callers to deal with it. https://bugs.freedesktop.org/show_bug.cgi?id=37916
2011-05-22Revert "PS: Use tight bounding box"Adrian Johnson1-4/+11
3f5aaf6b was not meant to be committed to the 1.10 branch. This reverts commit 3f5aaf6baaac2766bef57367470777df62c60946.
2011-05-22PS: Use tight bounding boxAdrian Johnson1-11/+4
Now that the page size is specified by %%DocumentMedia we can make %%BoundingBox compliant.
2011-05-20build: Use $GREP -e instead of plain grep -eBenjamin Otte1-1/+2
https://bugs.freedesktop.org/show_bug.cgi?id=37388
2011-04-02image: Don't use the fast path if it's wrongUli Schlachter1-0/+5
Fixes the original report from: http://lists.cairographics.org/archives/cairo/2011-March/021827.html I tested this code path with all operators and "source" is the only one which causes issues with rendering outside of the boxes. Possibly fixes: https://bugs.freedesktop.org/show_bug.cgi?id=35407 Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-03-19quartz: Fix y glyph advanceAndrea Canciani1-1/+8
The advances must be transformed by the "quartz inverse scale", i.e. (scale_inverse * scale(1,-1)). Fixes show-glyph-advance.
2011-03-19test: Add show-glyphs-advanceAndrea Canciani8-0/+113
This new test (based on show-glyphs-many) checks that the glyphs advances are respected along both axes. 9c0d761bfcdd28d52c83d74f46dd3c709ae0fa69 introduced a bug which regresses this test in quartz. Thanks to Jeff Muizelaar for the report!
2011-03-19path: Fix _cairo_path_fixed_is_rectangle()Andrea Canciani1-1/+4
__cairo_path_fixed_is_rectangle() is used by the PS and PDF backends to check if a path is equivalent to a rectangle when stroking. This is different from being a rectangle when filling, because of the implicit close_path appended to every subpath when filling. Fixes stroke-open-box. See https://bugs.freedesktop.org/show_bug.cgi?id=34560
2011-03-19test: Add stroke-open-boxAndrea Canciani4-0/+53
Add a new test to check that the stroking of a 3-sided box is not "optimized" to a 4-sided box. Test case based on the code by Simon Kellner in https://bugs.freedesktop.org/show_bug.cgi?id=34560
2011-03-15configure: Test for funlockfileChris Wilson1-1/+1
cairo-trace already depended upon HAVE_FUNLOCKFILE for its thread-safety. [This is a candidate for 1.10.] Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-03-15xcb: Compile fix when using xcb-drmChris Wilson1-1/+1
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2011-03-13cff: Fix heap corruptionAdrian Johnson1-4/+11
caused by holding a pointer into a cairo_array after a realloc https://bugs.freedesktop.org/show_bug.cgi?id=35161
2011-02-19arf: Fix erroneous return statement.Benjamin Otte1-2/+0
Introduced in 24ed8b1e60ea21dcf88fdade34078bbdd617bcbe.
2011-02-18arc: Handle radius == 0 the same no matter the arc directionBenjamin Otte1-1/+6
Commit a0ea0b63fdd38a73d6696da5cd4800d9a7289240 fixed cairo_arc() but did not apply the same patch to cairo_arc_negative(). This patch fixes that oversight.
2011-02-14xlib: Fix compilation when gradient functions are not availableAndrea Canciani2-9/+23
It is not correct to rely on the version defined in render.h. The Xrender.h header is independent and might not define some functions available in RENDER 0.10. Their availability must be detected at configure time and the stubs must be defined only if the functions are not available. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=31906
2011-02-08Type1-subset: Fallback if font contains more than one /EncodingAdrian Johnson1-0/+4
https://bugzilla.gnome.org/show_bug.cgi?id=641704
2011-01-25LD_PRELOAD is supported on HurdPino Toscano1-1/+1
LD_PRELOAD is supported on Hurd. Adding Hurd to the list of supported systems makes cairo-trace available on them as well. See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=608492
2011-01-18tee: Do not apply two times the master device transformRobert O'Callahan1-3/+0
cairo_tee_surface_create copies the device transform from 'master' to the new surface. This is wrong since all the cairo_surface_wrapper functions apply master's device transform themselves. Reviewed-by: Benjamin Otte <otte@redhat.com>
2010-12-25version: Post release version bumpChris Wilson1-1/+1
2010-12-25version: Bump for 1.10.2 release1.10.2Chris Wilson1-1/+1
2010-12-25NEWS: Add entry for 1.10.2Chris Wilson1-0/+59
2010-12-25Add a KNOWN_ISSUES file to track WONTFIX(?) bugsChris Wilson2-0/+11
2010-12-17PS: fix embedding of grayscale jpegsKoji Otani1-2/+3
https://bugs.freedesktop.org/show_bug.cgi?id=31632 (cherry picked from commit 653ceb517fe756b042a3cf8322a36cbfe71ddbd8)
2010-12-14path-bounder: Update current point after curve_to opAndrea Canciani1-0/+2
Even if the curve_to is completely within the current extents box, the current point needs to be updated because the shape of following ops depends on the position of the current point. Fixes bug-extents.
2010-12-14test: Add bug-extentsAndrea Canciani8-0/+65
Add a test for the computation of approximate extents used by most backends to esimate the region affected by drawing operations. Based on: http://lists.cairographics.org/archives/cairo/2010-December/021331.html
2010-12-02test: Fix ref imagesAndrea Canciani4-0/+0
The corners of the boxes in these ref images were not correct.
2010-12-02image: Fix compositing of unaligned boxesAndrea Canciani1-8/+14
The input of _fill_unaligned_boxes is (supposed to be) composed only of disjoint rectangles, that can safely be passed to the rectilinear span converter, but this function artificially introduces intersecting rectangles when drawing non-aligned boxes. Using non-intersecting rectangles is easy and makes the code correct. Fixes rectilinear-grid. Reviewed-by: Uli Schlachter <psychon@znc.in>
2010-12-02test: Add rectilinear-gridAndrea Canciani5-0/+81
The rectilinear scan converter assumes disjoint rects as input, but cairo-image passes intersecting rectangles to it. This test shows that image and any backends passing through it for the rasterization (fallbacks, vector backends whose renderer is cairo-based) fail in compute the corners of intersecting rectangles correctly.
2010-11-26PDF: Add missing clipper_resetAdrian Johnson1-0/+2
(cherry picked from commit 2ae2be36d4551906fd4edbc8bf07aaa7fe0c93cf)
2010-11-26Fix type of _cairo_memory_stream_destroy parameterMarkus Stange1-2/+2
In 9b9952ab4f64a476bbadfd3e6cf1e66c1137ccd7 _cairo_memory_stream_destroy was changed to take an unsigned long instead of unsigned int, and the two callsites in cairo-gl-shaders.c weren't updated.
2010-11-26xcb: Do not return value in void functionAndrea Canciani1-6/+4
Sun Studio Compiler complains: "cairo-xcb-surface.c", line 585: void function cannot return value even if the returned value is void. Some minor code restructuring removes the issue.
2010-11-26test: Add romedalen images copyright informationAndrea Canciani1-0/+13
romedalen.png and romedalen.jpg have been bundled into the test suite without an explicit copyright notice.
2010-11-26Fix degenerate arcsAndrea Canciani2-0/+5
Make sure that degenerate arcs become a move_to-line_to sequence instead of just a move_to. Fixes get-path-extents.
2010-11-26LD_PRELOAD is supported on DragonFly.Joerg Sonnenberger1-1/+1
2010-11-26Fix build on gentooErik Zeek1-2/+2
The problem is probably caused by a change in the behavior of autoconf (2.67). See http://bugs.gentoo.org/336329
2010-11-26configure: Correct reporting of tee backendAndrea Canciani1-1/+1
Since 9f33f8453b4949cfdc63169d3acd7238f89379c2 tee is not compiled in anymore by default. Reporting it as always enabled is misleading.
2010-11-24ps: Fix paintingAndrea Canciani1-3/+2
Painting of some pattern was broken because the paint operation was implemented as a fill to a rect containing the clip, but this rect was not transformed as appropriate (using the cairo_to_ps matrix). PDF simply fills the whole surface rect, so we implement the same behavior in PS. Fixes clip-group-shapes-circles, clip-stroke, linear-gradient-extend, linear-gradient-one-stop, radial-gradient-one-stop.
2010-11-21PS: Fix regression - incorrect EPS bounding boxAdrian Johnson1-30/+10
https://bugs.freedesktop.org/show_bug.cgi?id=24688 (cherry picked from commit bb4055dac6a937b3412170a332b5effe4bbeff7d)
2010-11-21PS: Fix regression - missing page content in EPS outputAdrian Johnson1-9/+0
https://bugs.freedesktop.org/show_bug.cgi?id=24688 (cherry picked from commit d3746448d78fcedf8f8f9a7d0fca47f1bd6a5b67)
2010-11-21PS/PDF: Fix regression when changing page size to a larger sizeAdrian Johnson3-2/+42
https://bugs.freedesktop.org/show_bug.cgi?id=24691 (cherry picked from commit e7c5f470436220668e50201d775a9fec47162a67)
2010-11-21PDF: Restrict ActualText to PDF version >= 1.5Adrian Johnson1-13/+18
The use of ActualText in a marked content sequence is a PDF 1.5 feature. A 'use_actual_text' flag linked to the PDF version has already been implemented in pdf-operators but for some reason this flag had not been used to control the use of ActualText. (cherry picked from commit 3afd7cd031ab9097e37c3e89d86ec41d015fdeb8)
2010-11-21Fix type1-fallback bboxAdrian Johnson1-4/+4
(cherry picked from commit 74873c82242e9c124b69e05d0f8abdf78983d62d)
2010-11-21configure.ac.features: s/Meta/Recording/Adrian Johnson1-1/+1
(cherry picked from commit 8f2f5e5ad4f8e5f18da903865bb2d2afce3a544e)
2010-11-05Fix degenerate vertical path bounds.Jeff Muizelaar2-9/+35
6b77567b6ef28710c7707ab82c7fa95c810152d1 made vertical path bounds with no area return extents of 0,0. This fixes the problem by not assuming degenerate path bounds are 0,0
2010-11-02image: Use correct size for allocationAndrea Canciani1-2/+2
In 06e9caf86199e8261a07db6d4774628fa147728d the type of the variables was changed, but the type used to compute the allocation size was not. Fixes a crash in user-font-mask (test-fallback backend). (cherry picked from commit c7027c9d89d9a13d6cbc1727fc8513c908878db9)
2010-10-28build: Don't build cairo-fdr when the tee surface is offBenjamin Otte1-0/+2
2010-10-28PDF: Don't use the currently set color after a 'Q' operatorAdrian Johnson1-0/+1
https://bugs.freedesktop.org/show_bug.cgi?id=31140 (cherry picked from commit e23bcfd4300870034f07b1ecd1bb4d2ac95d9785)
2010-10-24Type 1 subset: Fix glyph advanceAdrian Johnson1-15/+15
https://bugs.freedesktop.org/show_bug.cgi?id=31062 (cherry picked from commit 6dc0b19adb6da690ad5944623081b9cdb42de066)
2010-10-24PDF: Fix regression in EXTEND_NONE gradientsAdrian Johnson1-1/+14
The test for opaque gradients in _cairo_pdf_surface_add_pdf_pattern() must be identical to the test in _cairo_pdf_surface_emit_pattern_stops() other wise the PDF file will reference a smask that does not exist. The _cairo_pattern_is_opaque() test is too strict for PDF as PDF can draw EXTEND_NONE gradients with opaque color stops without requiring a smask. (cherry picked from commit 7a17ef31760c49b81fd2890814f5b2aeb8c6b3a3)