Commit graph

1821 commits

Author SHA1 Message Date
Carl Worth
8dff692db6 Support multiple glyph image formats within the same font (fix #4705).
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-01 14:50:48 -07:00
Emmanuel Pacaud
0c927c5388 SVG: Add reference images for tests failing on 1 digit error on color. 2006-05-01 23:23:02 +02:00
Emmanuel Pacaud
e3b3402eb8 SVG: Correct use of paginated surface. Fix emit of alpha filter. 2006-05-01 23:21:37 +02:00
Emmanuel Pacaud
8e5ada5201 SVG: Trivial indentation and comment fixes. 2006-05-01 22:53:46 +02:00
Emmanuel Pacaud
62831dc10e SVG: Remove outdated comment. 2006-05-01 22:53:12 +02:00
Emmanuel Pacaud
22c799d5b3 SVG: Fix error handling in create_for_document and in composite_image_pattern. 2006-05-01 22:52:47 +02:00
Emmanuel Pacaud
6f49f7b76d SVG: Add an additionnal API for creating SVG 1.1 or 1.2 files.
And update documentation.
2006-05-01 22:51:25 +02:00
Emmanuel Pacaud
2e4d0e5ba7 SVG: Some variable/type renaming. 2006-05-01 22:50:42 +02:00
Emmanuel Pacaud
e5ea8268b0 SVG: Reenable optimisation of CLEAR and SOURCE in paint when there's
no active clipping path.
2006-05-01 22:49:58 +02:00
Emmanuel Pacaud
55685d7173 SVG: Code cleanup. 2006-05-01 22:49:29 +02:00
Emmanuel Pacaud
926bb6480c SVG: Initial support of operators support via image fallbacks.
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-01 22:47:41 +02:00
Emmanuel Pacaud
061d508898 SVG: Sort of working implementation of a SVG backend with paginated surface
support.

        Unoptimized and with memory leaks.
2006-05-01 22:43:15 +02:00
Emmanuel Pacaud
59dcb95ce5 SVG: First pass for analyze-surface support 2006-05-01 22:41:12 +02:00
Emmanuel Pacaud
0625d4cd3f SVG: Ignore SVG test files. 2006-05-01 22:15:38 +02:00
Emmanuel Pacaud
d1dcbbb8c3 SVG: Update rgb24 reference files.
(cherry picked from 7173951535f4b95da37cbf3d51143deeec95e47a commit)
2006-05-01 22:13:18 +02:00
Emmanuel Pacaud
bdc1c1ac78 Copy content property when doing a snapshot of a meta surface. 2006-05-01 22:12:20 +02:00
Emmanuel Pacaud
6a33993b15 Merge branch 'origin' 2006-05-01 22:01:38 +02:00
Emmanuel Pacaud
b920dfd3df SVG: Reenable operator tests, and rgb24 surface are meta-surfaces. 2006-05-01 21:59:53 +02:00
Carl Worth
3aa5d76d23 Add missing file leaky-dash-ref.png 2006-04-29 14:28:21 -07:00
Henning Noren
516ac16de1 Fix PS Surface Memleak
Fixes leak of 16 bytes when calling _cairo_ps_surface_finish by never freeing
the closure allocated in _word_wrap_stream_create.
2006-04-28 07:04:56 -07:00
Carl Worth
9729fe6024 Add line-width-scale test to demonstrate cairo_set_line_width bug 2006-04-27 11:45:38 -07:00
Carl Worth
5821d88119 Correct documentation to say "user space", not "user-space" where appropriate. 2006-04-27 11:45:26 -07:00
Emmanuel Pacaud
5515191f84 Use CLEAR operator in mask.c in order to not trig image fallback
for polygon masking.
(cherry picked from 30b2d1c5df9d1c6b536838a6a3407fdfa7198e29 commit)
2006-04-27 06:50:37 -07:00
Emmanuel Pacaud
9bca27a1ad Optimisation of CLEAR operator in meta-surface.
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-27 06:39:41 -07:00
Emmanuel Pacaud
a732058920 Implement paginated create_similar, moving similar images down to PS and PDF.
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-27 06:36:16 -07:00
Carl Worth
e1be80b020 paginated: Remove memory leak of analysis surface from _paint_page
Thanks to Henning Noren <henning.noren.402@student.lu.se> for pointing this out.
2006-04-27 06:02:46 -07:00
Carl Worth
09a51a4e03 Add reference to cairo_surface_set_user_data in docs. for cairo_image_surface_create_for_data 2006-04-27 05:44:57 -07:00
Carl Worth
08733a2228 Move 1.4 schedule up. Add more bugs from sunmoon1997
To hit the Firefox 3 schedule in early 2007 we'll need to have a 1.4 release
out much sooner. Let's shoot for October 2006 which gives 6 months between
1.2 and 1.4.

Also, sunmoon1997 has identified a couple more important issues to be fixed
before 1.2 releases.
2006-04-26 21:22:58 -07:00
Carl Worth
b10a0a9a21 Add a couple more items to the 1.2.0 ROADMAP 2006-04-26 16:43:59 -07:00
Carl Worth
c7a45ab49b Update ROADMAP with suggestions from discussion of 1.1.2 snapshot 2006-04-26 16:43:58 -07:00
Christian Biesinger
9ab4b81a09 Use a single LDADD variable instead of a per-test one
to avoid repeating the list of tests.
2006-04-27 00:51:01 +02:00
Carl Worth
7601a07ae9 Remove cairo.def from the generated tar file. It's not useful there. 2006-04-26 14:34:02 -07:00
Behdad Esfahbod
74ec21b2a7 WIN32: Define SHADEBLENDCAPS and SB_NONE if they are not defined. (from Tor Lillqvist)
(cherry picked from d3ff5228a2 commit)
2006-04-26 14:31:36 -07:00
Carl Worth
e0a2e1fd14 Add leaky-dash test case demonstrating bug #4863.
Test case for bug #4863:

	stroking problems with wide dashed lines
	https://bugs.freedesktop.org/show_bug.cgi?id=4863
2006-04-26 12:51:54 -07:00
Carl Worth
e4b3cb1e71 Remove deleted reference images from Makefile.am 2006-04-26 12:49:58 -07:00
Carl Worth
7110c168f7 Remove redeundant -rgb24-ref.png images.
In several cases the -rgb24 reference images were identical to the -ref images.
So we change the logic to find the latter if the former doesn't exist, and then
we remove the redundant images.
2006-04-26 12:36:22 -07:00
Zhe Su
fe8bf47afc Support fontconfig embeddedbitmap option/handle transformation issue as well. 2006-04-25 10:20:42 -07:00
Carl Worth
90b7a2d5fc Increment CAIRO_VERSION to 1.1.3 after making the 1.1.2 snapshot 2006-04-25 09:47:30 -07:00
Carl Worth
d5dd5e6ebc Remove from EXTRA_DIST reference images which don't exist 2006-04-25 09:12:30 -07:00
Carl Worth
e89de1030e Change release targets as appropriate for a snapshot, not a release.
The big change here is to change the upload directory to be the snapshots directory
rather than the releases directory. We also use make dist rather than make distcheck
since there are currently a few tests still failing.
2006-04-25 08:56:23 -07:00
Carl Worth
3d6cdc996f Add release vs. snapshot distinction to version increment instructions 2006-04-25 08:54:59 -07:00
Carl Worth
68c5382b6c Increment CAIRO_VERSION to 1.1.2 and libtool versioning to 6:0:4 2006-04-25 08:51:08 -07:00
Carl Worth
3002c6cc8b Add some notes for the 1.1.2 snapshot 2006-04-25 08:44:45 -07:00
Carl Worth
a0df6fa696 Update PS and PDF reference images for change in font options 2006-04-25 07:07:48 -07:00
Carl Worth
6237437f41 Merge branch 'behdad-colored-fails' into cairo 2006-04-25 07:02:41 -07:00
Behdad Esfahbod
f1c3754753 Use white on red for failures. 2006-04-25 09:58:48 -04:00
Behdad Esfahbod
9668b6592f Set background color to red for test failures printing on a terminal. 2006-04-25 09:03:26 -04:00
Carl Worth
22ab0e5f16 Fix default font options for PS and PDF backends.
The paginated surface layer was missing its get_font_options function.
It now defers to the target surface. The PDF backend already had a
get_font_options function, but the PS backend was also missing it.

This should fix the problem with 72DPI hinting seen in glyph paths in
PostScript output.

Thanks to Owen Taylor for identifying this problem and the correct
fix.
2006-04-25 05:44:08 -07:00
Behdad Esfahbod
6723547f00 Merge branch 'configure-backends' 2006-04-25 08:28:59 -04:00
Behdad Esfahbod
e912512c6d Better message when backends are disabled. 2006-04-25 08:26:35 -04:00