Commit graph

2548 commits

Author SHA1 Message Date
Behdad Esfahbod
7cac87c804 [Makefile.am] Pass tag message to git-tag in release-publish 2006-11-02 21:15:41 -05:00
Behdad Esfahbod
953332d128 [Makefile.am] Minor fixes in release-publish output 2006-11-02 21:13:49 -05:00
Behdad Esfahbod
5cb556b5e9 [configure.in] Increase version to 1.2.7 post release 2006-11-02 20:11:25 -05:00
Behdad Esfahbod
8878bbc549 Released cairo-1.2.6.
Update version to 1.2.6 and libtool version to 11:3:9
2006-11-02 19:59:50 -05:00
Behdad Esfahbod
f9f5db0618 [doc] Update templates prior to release 2006-11-02 19:59:27 -05:00
Behdad Esfahbod
79d4d97658 Makefile.am: Remove boilerplate out of DIST_SUBDIRS
Bad bad different changes in the same commit.
2006-11-02 19:58:40 -05:00
Behdad Esfahbod
dbdb28252b Add notes for the 1.2.6 release. 2006-11-02 19:52:03 -05:00
Carl Worth
76cc6af100 Make xlib and xcb backends tolerant of single-bit errors in the test suite output.
Manually "cherry picked" from 61bf9b009b
(the cherry-pick command cannot handle the file renames and
indentation changes involved here).
2006-11-02 15:12:16 -08:00
Carl Worth
ad4f0ba2d5 Move target tolerance to cairo_test_target structure (should let single-pixel SVG errors pass)
Previously we were setting the target tolerance based on the surface
type. But that doesn't work as multiple backends will provide a surface
of type meta. So instead we put the tolerance as a value in the
cairo_test_target data structure.

With this change, some single-pixel errors of 1 in the SVG backend
should now be ignored.

Manually "cherry picked" from bcb7863f00
(the regular cherry-pick command cannot handle the file renames and
 indentation changes involved here).
2006-11-02 15:12:15 -08:00
Carl Worth
02497b39c8 test: Ignore single-bit errors for SVG backend.
The interface of the various buffer/image_diff functions is improved to
provide the maximum pixel difference in addition to the number of pixels
that differ. This value can then be used to compare against a per-backend
tolerance.

Currently I've set the SVG backend's tolerance to 1 to handle some issues
we're currently seeing of single-bit differences on different systems, (but
we're not exactly sure why yet).

Also I improved the image_diff routines to properly report a status value
on failure rather than the bogus value of -1 for pixels_changed.

Cherry-picked from d1834cca19
(and fixed ever so slightly to actually compile).
2006-11-02 15:12:15 -08:00
Carl Worth
11127fc210 test: Remove custom read/write-png code in favor of using cairo surfaces
Also combine image_diff and image_diff_flattened into a single function

This was manually taken from 9547521885
(It would have been a cherry-pick, but that doesn't yet handle file
renames.)
2006-11-02 15:12:15 -08:00
Tor Lillqvist
37dcbe61cf [win32] Use CAIRO_FORMAT_RGB24 for BITSPIXEL==32 surfaces too
From:

  http://lists.freedesktop.org/archives/cairo/2006-October/008122.html
2006-11-02 17:17:44 -05:00
Behdad Esfahbod
892a050007 [win32] Remove _cairo_win32_surface_show_glyphs()
The one copied from master didn't compile, needed a lot more code to be
backported.  Lets just use the fallback paths.
2006-11-02 13:32:30 -08:00
Behdad Esfahbod
48d54e8a32 [slim] hide cairo_pattern_status() #8551
(cherry picked from a13d58ff3a commit)
2006-11-02 13:31:15 -08:00
Jamey Sharp
76026c89c2 [slim] hide cairo_version_string()
Adrian's recent commits broke PLT hiding by calling cairo_version_string
from inside cairo. Add slim_hidden_def and slim_hidden_proto for it.
(cherry picked from 445251cc79 commit)
2006-11-02 13:31:13 -08:00
Miklós Erdélyi
510aae2000 Pass correct surface to create_similar in _cairo_clip_init_deep_copy()
This is already done in master as part of other changes.
Submitted here:
http://lists.freedesktop.org/archives/cairo/2006-August/007698.html
2006-11-02 13:02:08 -08:00
Behdad Esfahbod
b20171cf30 [PDF] Set CTM before path construction
The previous order is undefined according to the PDF spec.  The resulting PDF
was being misrendered using OS X Preview viewer.  This was reported in this
thread:

  http://lists.freedesktop.org/archives/cairo/2006-October/008271.html
(cherry picked from e1ded5b1e0 commit)
2006-11-02 13:02:08 -08:00
Carl Worth
cc8dd91ac2 test: Update reference images due to previous change to _cairo_color_compute_shorts
The previous change was in b62710d4f8
We just forgot to update the reference images at the time so there
have been false failure results in the test suite until now.
(cherry picked from 670b3ce243 commit)
2006-11-02 13:02:08 -08:00
Christian Biesinger
28fec29345 Add missing ) in comment
(cherry picked from d6ebe07be2 commit)
2006-11-02 13:02:08 -08:00
Carl Worth
60d65de159 Add neglected reference images for infinite-join test
(cherry picked from 40e1c0246d commit)
2006-11-02 13:02:03 -08:00
Carl Worth
d0bca72499 Fix infinite-join test case (bug #8379)
The trick for this was to carefully ensure that the pen always has
at least 4 vertices. There was a previous attempt at this in the
code already but the test case had a combination of matrix and radius
that resulted in a value that was just able to sneak past the previous
check.
(cherry picked from 10cd23d51f commit)
2006-11-02 13:02:03 -08:00
Carl Worth
137ced1dd7 test/infinite-join: Modify to draw something visible, and make the output a more reasonable size.
The modification was performed with care to ensure that the bug
is still exercised. Also, reference images are added.
(cherry picked from 5b7a7f39ad commit)
2006-11-02 13:02:03 -08:00
Carl Worth
75b6d21ed5 Add assert statement so the infinite-join test simply exits rather than looping infinitely.
(cherry picked from 5492a7c761 commit)
2006-11-02 13:02:03 -08:00
Carl Worth
16a08ff1b0 Add test case from bug #8379 demonstrating infinite loop during round join
(cherry picked from 8744929030 commit)
2006-11-02 13:02:03 -08:00
Behdad Esfahbod
459223945e [configure.in] Require pkg-config 0.19. (#8686)
(cherry picked from 157663e1fd commit)
2006-11-02 13:02:03 -08:00
Carl Worth
d2ab45fed7 Bug #7497: Change _cairo_color_compute_shorts to not rely on any particular floating-point epsilon value.
(cherry picked from b62710d4f8 commit)
2006-11-02 13:02:02 -08:00
Adrian Johnson
97a712ce4e PDF: Add cairo version to document info dictionary
(cherry picked from 830804c7ae commit)
2006-11-02 13:02:02 -08:00
Adrian Johnson
916ccab198 PS: Add cairo version to PS header
(cherry picked from 5aaa1988c7 commit)
2006-11-02 13:02:02 -08:00
Adrian Johnson
d883217773 Type1 subsetting: Don't put .notdef in Encoding when there are 256 glyphs
Type1 subsetting adds the .notdef glyph to the subset because the Type 1
spec requires that it be defined. However if the subset already has
256 glyphs, this will cause the Encoding vector to have 257 entries
which ghostscript does not like.
(cherry picked from 753763ff25 commit)
2006-11-02 13:02:02 -08:00
Adrian Johnson
df7faeff4e Correct an unsigned to signed conversion problem in truetype subsetting bbox
(cherry picked from d1fb02b5b9 commit)
2006-11-02 13:02:02 -08:00
Christian Biesinger
3f519f672a fix comment: pixman_private needs to be before the type of a variable
Makes the documentation match the code.
Compare also commit 34d11aa3c4
(cherry picked from 38dcddd79e commit)
2006-11-02 13:02:02 -08:00
Behdad Esfahbod
07009ab72f [slim] hide cairo_glitz_surface_create() (#8551)
(cherry picked from f6a2811c87 commit)
2006-11-02 13:02:02 -08:00
Carl Worth
2734968e29 Fix typo that was resulting in device glyph_extents of INT16_MAX in some cases.
(cherry picked from f1db013547 commit)
2006-11-02 13:02:02 -08:00
Behdad Esfahbod
c6beeda701 [Makefile.am] Pass srcdir down to the tests
(cherry picked from 2041db9196 commit)
2006-11-02 13:02:01 -08:00
Carl Worth
405d5b7dca Add new _cairo_pattern_create_for_status so that patterns properly propagate errors.
In particular, many possible error values on a surface provided
to cairo_pattern_create_for_surface were previously being swallowed
and a nil pattern was returned that erroneously reported
CAIRO_STATUS_NO_MEMORY.
(cherry picked from 01502471e3 commit)
2006-10-31 21:17:30 -05:00
Carl Worth
20d7a556ce Fix cairo_image_surface_create to report INVALID_FORMAT errors.
This adds a new nil cairo_image_surface to hold CAIRO_STATUS_INVALID_FORMAT.
Previously the detected error was being lost and a nil surface was
returned that erroneously reported CAIRO_STATUS_NO_MEMORY.
(cherry picked from 4d2b54a271 commit)
2006-10-31 21:17:09 -05:00
Behdad Esfahbod
e4ff87ea59 [check-headers.sh] Don't use '\>' regexp syntax
(cherry picked from 1e0e207509 commit)
2006-10-31 21:16:44 -05:00
Alfred Peng
372e631a83 Use pixman_private consistently as prefix not suffix
(cherry picked from 34d11aa3c4 commit)
2006-10-31 21:16:28 -05:00
Alfred Peng
a3ac198b0a Add Sun Pro C definition of pixman_private
(cherry picked from c1495742f7 commit)
2006-10-31 21:16:22 -05:00
Carl Worth
ba8b0c0268 Fix dependency of 'make doc' so that necessary header files are built first.
(cherry picked from 28cc64aa20 commit)
2006-10-31 21:16:16 -05:00
Carl Worth
4c838dddd1 Rename docs-publish target to doc-publish in order to be consistent with the doc target.
(cherry picked from deef1a6675 commit)
2006-10-31 21:15:54 -05:00
Carl Worth
d65a8fd422 Fix Makefile bug preventing 'make doc' from succeeding
(cherry picked from e6575fb3c7 commit)
2006-10-31 21:15:47 -05:00
Carl Worth
0a59ab7d55 Fix typo in documentation of cairo_in_fill (thanks to Jonathan Watt) and clarify a bit.
(cherry picked from b99d41a0b0 commit)
2006-10-31 21:15:17 -05:00
Robert O'Callahan
57bca39e08 Remove redundant call to _cairo_surface_get_extents
We called it just above with the same parameters.
(cherry picked from 17eeacfba8 commit)
2006-10-31 21:14:18 -05:00
Carl Worth
b586c0456e Rename test from stale path-data name to copy-path
(cherry picked from e4dc73ab1c commit)
2006-10-31 21:13:52 -05:00
Carl Worth
cfffc5022e Fix cairo_copy_path and cairo_copy_path_flat to propagate errors.
One of these functions was already documented to be doing this, and
the other one should have been. Now the documentation and behavior
for both are consistent, (and the path-data test case verifies this).
(cherry picked from 5f833c134b commit)
2006-10-31 21:13:37 -05:00
Kristian Høgsberg
b74b14ad45 Compute right index when looking up left side bearing.
When looking up the short entries in the second part of
the hmtx table, compute the size of the first part correctly.

Fix from Adrian, see:

  https://bugs.freedesktop.org/show_bug.cgi?id=8180#c12
(cherry picked from f9165638bf commit)
2006-10-31 21:13:14 -05:00
Behdad Esfahbod
bdff62a4b6 [configure] Print out whether SVG and PDF surfaces can be tested
(cherry picked from 7c3062240a commit)
2006-10-31 21:13:00 -05:00
Carl Worth
4085afc75d Add missing pixman_private to _FbOnes when a function.
This was thanks to a report from crucible (run #2113) since it tested
with older versions of gcc (3.3.6) than most of the cairo developers
use, (so we had been getting the _FbOnes macro not the function).
(cherry picked from 82b710ebc2 commit)
2006-10-31 21:11:49 -05:00
Behdad Esfahbod
6e7610cc1f check-def.sh: Only allow _cairo_.*_test_.* symbols, not all _cairo.* ones
(cherry picked from 42a0c6bd59 commit)
2006-10-31 21:11:44 -05:00