Commit graph

4943 commits

Author SHA1 Message Date
Carl Worth
a571cc56a3 Update pixman dependency to recent 0.10.0 release 2008-03-31 12:17:39 -07:00
Carl Worth
e9adba9a57 Update ps-specifc reference image for ft-text-vertical-layout-type1
Presumably this minor change happened due to a recent fix in
cairo-ps glyph positioning.
2008-03-31 12:15:06 -07:00
Adrian Johnson
a30ed53a1c Add stroke-image PS/PDF ref images 2008-03-30 00:13:35 +10:30
Adrian Johnson
a729f27f3c Add clip-operator PS/PDF rgb24 ref images 2008-03-30 00:07:05 +10:30
Adrian Johnson
9058b9260a Add operator-source PDF ref images
Required due to gradient rendering differences between poppler and
cairo.
2008-03-29 23:49:51 +10:30
Adrian Johnson
47981226db Fix PDF analysis of OPERATOR_SOURCE surface patterns 2008-03-29 23:45:31 +10:30
Adrian Johnson
53d1a4b0dc Update operator-source PS ref images 2008-03-29 23:03:41 +10:30
Adrian Johnson
b3b3e3810d PS: Clear pattern background to when using OPERATOR_SOURCE
Set pattern background to white if surface content is COLOR_ALPHA or
black if surface content is COLOR when operator is SOURCE.
2008-03-29 23:00:34 +10:30
Adrian Johnson
5b8b3a9765 PS/PDF: Save/Restore surface clip when emitting a meta-surface pattern 2008-03-29 15:52:37 +10:30
Adrian Johnson
e4fd9b4ea2 Bump poppler version required for testing to 0.8.0
The poppler specific reference images are created from the latest
version of poppler in git. The main reason has been for support for
knockout groups that had not yet been available in a stable release.

Poppler 0.8.0 is the first stable release to include the support for
knockout groups.
2008-03-27 09:09:41 +10:30
Carl Worth
af8928fa8b Add svg-specific reference image for ft-show-glyphs-positioning test
There was no failure here, just minor rasterization differences.
2008-03-26 14:52:09 -07:00
Carl Worth
fbab4bbb06 Update clip-operator and operator-clear reference images
There were legitimate bugs in the ps and pdf backends for these
tests, (particularly with the row of glyphs), but these bugs
were recently fixed with:

commit d89edde84d
Author: Vladimir Vukicevic <vladimir@pobox.com>
Date:   Tue Mar 4 00:15:46 2008 -0800

    [meta] always copy glyph array before passing to _cairo_surface_show_glyphs

and we just failed to notice the fix at the time.
2008-03-26 14:52:09 -07:00
Carl Worth
75972167a2 Use floating-point offsets for color stops
Previously we were using the cairo_fixed_t type which meant we've
historically only been using 16 bits of precision for these offsets,
and recently only 8 bits. Meanwhile, all manipulatons of offsets
have been in floating-point anyway, so we might as well store them
that way.

This change also prevents a rendering regression introduced with the
24.8->16.16 change betwen snapshots 1.5.10 and 1.5.12 .

This change affected gradient-rendering details for the clip-operator
and operator-source tests, so the corresponding reference images are
updated here.
2008-03-26 14:52:09 -07:00
Carl Worth
80dc1714c8 Remove unused variable 2008-03-26 14:52:09 -07:00
Chris Wilson
f676f18050 [cairo] Fixup make check.
make check demands that all function references in the docs are suffixed
with ().
2008-03-26 13:13:20 +00:00
Chris Wilson
452a1de2a0 [cairo-gstate] Remove dead code.
Eliminate _cairo_gstate_recursive_apply_clip_path, as its last caller
was removed over 2 years ago.
2008-03-26 13:13:19 +00:00
Adrian Johnson
ed42916028 Win32: Fix bug in cairo_win32_font_face_create_for_hfont()
Use GetObjectW for LOGFONTW.
2008-03-26 23:04:35 +10:30
Carl Worth
6dc75ab0f8 Quiet compiler warnings about unhandled PIXMAN_yuy2 and PIXMAN_yv12
We still don't handle these format codes of course, (they're meaningless
for the context in which they're used here).

Note that we previously avoided adding these to avoid people being forced
to upgrade pixman just to get two enum values that cairo doesn't really
care about. But now we're depending on a new pixman anyway, (for the
pixman_format_code_to_masks function), so we'll go ahead and do this now.
2008-03-25 16:46:02 -07:00
Carl Worth
1675713aff Depend on pixman 0.9.7 for new pixman_format_supported_destination function
This allows us to do a much more general and complete implementation of
_pixman_format_from_masks and _pixman_format_to_masks so that we'll
even pick up new pixman formats as they get added.
2008-03-25 16:45:21 -07:00
Carl Worth
d7e5f6b6a0 Rename _popcount to _cairo_popcount and make it available for internal use
Both cairo-image-surface.c and cairo-xlib-surface.c want to
use this function now.
2008-03-25 16:32:24 -07:00
Carl Worth
90cf7c2faf Quiet warning about signed vs. unsigned comparison 2008-03-25 13:17:49 -07:00
Carl Worth
770633c05a Quiet warnings about unhandled enum values in _cairo_surface_create_in_error 2008-03-25 13:17:49 -07:00
Carl Worth
d15c7c94bd Document performance advantage of cairo_path_extents
The cairo_path_extents function can perform better than either
cairo_stroke_extents or cairo_fill_extents, so provide that
pointer from the documentation of the other two functions.
2008-03-25 13:17:49 -07:00
Vladimir Vukicevic
8aba5b8029 [win32] Prevent crash in create_similar if win32_surface_create fails 2008-03-25 11:53:52 -07:00
Vladimir Vukicevic
49a140b04b [osx] additional fix to configure for multi-arch OSX builds 2008-03-25 11:22:43 -07:00
Vladimir Vukicevic
ae143d779b [quartz] When stroking with an image source, use the right CTM for the image
Since the CTM was modified for the stroke transform, we need to reset
it before calling ConcatCTM for the source transform.
2008-03-25 11:17:57 -07:00
Adrian Johnson
e9906ae202 Win32-Printing: Fix fallback resolution when DC ctm is not identity
And also move the _cairo_surface_set_resolution() into
_cairo_win32_printing_surface_start_page as the DC ctm may be changed
between pages.

This bug was found in Inkscape now that they are using the cairo
win32-printing surface for printing on Windows.
2008-03-25 21:56:19 +10:30
Carl Worth
ee3981fb92 Add new text-transform test
Previously, the test suite wasn't supplying any coverage of transformed
text rendering.
2008-03-24 16:26:28 -07:00
Adrian Johnson
184d9cbf9c Update REFERENCE_IMAGES with PS ref images
for finer finer-grained-fallbacks.
2008-03-24 12:36:37 +10:30
Adrian Johnson
2ad3915797 Add PS reference images for finer-grained-fallbacks test 2008-03-24 12:32:07 +10:30
Adrian Johnson
ae9635bf33 Fix assertion in PS/PDF/Win32-print when fallback image is off the page
If during analysis the bounding box of an operation or the number of
traps is 0, the operation is marked as natively supported. The problem
here is if the operation is unsupported by the backend, we get an
assertion when the operation is replayed during
CAIRO_PAGINATED_MODE_RENDER.

This bug was found in Inkscape when printing to the
win32_printing_surface a page that has been layed out as landscape but
landscape paper had not been selected in the print dialog.

Fix this by being careful not to mark unsupported operations as
supported during analysis even they may not be visible on the page.
2008-03-24 12:16:20 +10:30
Adrian Johnson
179ab7d286 Add finer-grained-fallbacks test
This reproduces the bug in PS/PDF/Win32-printing where an unsupported
operation that is off the page causes an unsupported operation
assertion in the backend.
2008-03-24 11:43:29 +10:30
Benjamin Otte
9a1f7bbc35 [API] unbreak CAIRO_FONT_TYPE_ATSUI
commit 9d61f7db80 broke API by making the
CAIRO_FONT_TYPE_ATSUI symbol not work anymore. However, this symbol was part of
Cairo's public API and should continue working this way.
2008-03-23 15:31:24 +01:00
Chris Wilson
104c2825ea [cairo-png] Set bKGD gray value.
For PNG_COLOR_TYPE_GRAY images the bKGD value is read from white.gray
which was uninitialized, triggering the "PNG warning = Ignoring attempt
to write bKGD chunk out-of-range for bit_depth" reported by Emmanuel
Pacaud. This patch sets the background gray value to white, the same as
for RGB images.
2008-03-21 09:15:42 +00:00
Adrian Johnson
c459932482 Update PS reference images
Some of the text tests require new PS specific reference images as a
result of the PS glyph positioning fix.
2008-03-21 18:12:03 +10:30
Adrian Johnson
f3a5f75701 Add PS/PDF ref images for ft-show-glyphs-positioning 2008-03-21 16:34:01 +10:30
Adrian Johnson
4f56a6324f Finish the PDF text operator decimal reduction commit
Commit 158b32b60b reduced excess
decimals emitted for the TJ operator. However it only fixed the first
of the two locations in pdf-operators where the TJ position
adjustments are emitted.
2008-03-21 16:30:53 +10:30
Adrian Johnson
13e05bffd5 Fix PS glyph positioning bug in PDF operator emulation
The emulation of the PDF 'TJ' operator in the PS prolog was
incorrectly updating the glyph position between strings. The glyph
position values are a negative x offset that are in 1/1000 unit of
text space. We were incorrectly multiplying the number by -0.0001
instead of -0.001. We also need to transform this to device space
before calling rmoveto.
2008-03-21 16:15:57 +10:30
Adrian Johnson
8348668452 Add ft-show-glyphs-positioning test
This demonstrates the glyph positioning bug in the PS backend.
2008-03-21 16:14:56 +10:30
Carl Worth
37fedd108e Increment cairo version to 1.5.15 after the 1.5.14 snapshot 2008-03-20 17:02:01 -07:00
Carl Worth
f4d4d7b3d0 Cleanup up png-test.png file in 'make clean' 2008-03-20 16:13:28 -07:00
Carl Worth
4ad5937648 Enable PLT avoidance for cairo_image_surface_get_data/stride 2008-03-20 15:55:28 -07:00
Carl Worth
5d9eefccd6 Disable enum_regexp test in check-doc-syntax.h
It's returning false positives on non-gtk-doc comments with non-public
enum values. Ick.
2008-03-20 15:37:04 -07:00
Carl Worth
0c17ca52aa Mark new cairo_xlib_visual_info functions as private. 2008-03-20 15:33:37 -07:00
Carl Worth
f32f81fa1b Increment cairo version to 1.5.14 and libtool versioning to 18:1:16 2008-03-20 13:49:29 -07:00
Carl Worth
ffa50c31d3 Doc template churn 2008-03-20 13:49:19 -07:00
Carl Worth
3bb0474ea7 NEWS: Add notes for 1.5.14 snapshot 2008-03-20 13:48:29 -07:00
Carl Worth
191440101e Fix the REFERENCE_IMAGES list, (like always before a snapshot) 2008-03-20 12:38:26 -07:00
Carl Worth
46bbead898 RELEASING: Clarify steps for verifying no unpushed modifications 2008-03-20 12:18:39 -07:00
Carl Worth
c91a2a2e80 Track minor change in pixman filtering sample location
This change in reference image was triggered by the following commit
in the pixman library:

	commit f2d8a5caa63596739b4dc47c00daaaafd9f522e2
	Author: Søren Sandmann <sandmann@redhat.com>
	Date:   Mon Mar 10 23:41:52 2008 -0400

	Add rounding epsilon for NEAREST filter after transformation, not before.

This hasn't appeared in a pixman release yet. So for now, getting
correct results is a matter of "use latest pixman". Soon we'll
have a new pixman release and we'll make cairo depend on that.
2008-03-20 11:51:57 -07:00