[cairo-commit] 9 commits - configure.in doc/public NEWS src/cairo-image-surface.c src/cairoint.h src/cairo-xlib-private.h src/check-doc-syntax.sh test/Makefile.am

Carl Worth cworth at kemper.freedesktop.org
Thu Mar 20 17:02:34 PDT 2008


 NEWS                                 |  129 ++++++++++++++++++++++++++++++++++-
 configure.in                         |    4 -
 doc/public/tmpl/cairo-font-face.sgml |    2 
 src/cairo-image-surface.c            |    2 
 src/cairo-xlib-private.h             |    4 -
 src/cairoint.h                       |    2 
 src/check-doc-syntax.sh              |   29 +++++--
 test/Makefile.am                     |    5 -
 8 files changed, 159 insertions(+), 18 deletions(-)

New commits:
commit 37fedd108e3defc10f2f749a3a9971287e41706c
Author: Carl Worth <cworth at cworth.org>
Date:   Thu Mar 20 17:02:01 2008 -0700

    Increment cairo version to 1.5.15 after the 1.5.14 snapshot

diff --git a/configure.in b/configure.in
index fd6cd4c..6a86a33 100644
--- a/configure.in
+++ b/configure.in
@@ -7,7 +7,7 @@ dnl For the micro number: odd => in-progress development (from git)
 dnl			  even => tar-file snapshot or release
 m4_define(cairo_version_major, 1)
 m4_define(cairo_version_minor, 5)
-m4_define(cairo_version_micro, 14)
+m4_define(cairo_version_micro, 15)
 
 AC_INIT([cairo],
       cairo_version_major.cairo_version_minor.cairo_version_micro,
commit f4d4d7b3d0bd62af6ffd50ba9cd8df0b9a12be71
Author: Carl Worth <cworth at cworth.org>
Date:   Thu Mar 20 16:13:28 2008 -0700

    Cleanup up png-test.png file in 'make clean'

diff --git a/test/Makefile.am b/test/Makefile.am
index 03ecd9e..c890a04 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -774,6 +774,7 @@ CLEANFILES =					\
 	valgrind-log				\
 	index.html				\
 	ref.hash				\
+	png-test.png				\
 	$(EXTRA_LTLIBRARIES)			\
 	$(EXTRA_PROGRAMS)
 
commit 4ad5937648b27cd7a73a6a245ed875de92fa1c07
Author: Carl Worth <cworth at cworth.org>
Date:   Thu Mar 20 15:55:28 2008 -0700

    Enable PLT avoidance for cairo_image_surface_get_data/stride

diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c
index edadcd8..d6f2595 100644
--- a/src/cairo-image-surface.c
+++ b/src/cairo-image-surface.c
@@ -552,6 +552,7 @@ cairo_image_surface_get_data (cairo_surface_t *surface)
 
     return image_surface->data;
 }
+slim_hidden_def (cairo_image_surface_get_data);
 
 /**
  * cairo_image_surface_get_format:
@@ -648,6 +649,7 @@ cairo_image_surface_get_stride (cairo_surface_t *surface)
 
     return image_surface->stride;
 }
+slim_hidden_def (cairo_image_surface_get_stride);
 
 cairo_format_t
 _cairo_format_from_content (cairo_content_t content)
diff --git a/src/cairoint.h b/src/cairoint.h
index 0a66f25..5ab213d 100644
--- a/src/cairoint.h
+++ b/src/cairoint.h
@@ -2249,7 +2249,9 @@ slim_hidden_proto (cairo_get_matrix);
 slim_hidden_proto (cairo_get_tolerance);
 slim_hidden_proto (cairo_image_surface_create);
 slim_hidden_proto (cairo_image_surface_create_for_data);
+slim_hidden_proto (cairo_image_surface_get_data);
 slim_hidden_proto (cairo_image_surface_get_height);
+slim_hidden_proto (cairo_image_surface_get_stride);
 slim_hidden_proto (cairo_image_surface_get_width);
 slim_hidden_proto (cairo_format_stride_for_width);
 slim_hidden_proto (cairo_line_to);
commit 5d9eefccd6ff4d51e16caa8f3092d3acc33b5549
Author: Carl Worth <cworth at cworth.org>
Date:   Thu Mar 20 15:37:04 2008 -0700

    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.

diff --git a/src/check-doc-syntax.sh b/src/check-doc-syntax.sh
index 16d5372..b70e3c6 100755
--- a/src/check-doc-syntax.sh
+++ b/src/check-doc-syntax.sh
@@ -18,16 +18,25 @@ if test "x$SGML_DOCS" = x; then
     FILES=`find "$srcdir" -name '*.h' -or -name '*.c' -or -name '*.cpp'`
 fi
 
-enum_regexp='\([^%@]\|^\)\<\(FALSE\|TRUE\|NULL\|CAIRO_[0-9A-Z_]*[^(0-9A-Z_]\)'
-if test "x$SGML_DOCS" = x; then
-	enum_regexp='^[/ ][*] .*'$enum_regexp
-fi
-if grep "$enum_regexp" $FILES | grep -v '#####'; then
-	status=1
-	echo Error: some macros in the docs are not prefixed by percent sign.
-	echo Fix this by searching for the following regexp in the above files:
-	echo "	'$enum_regexp'"
-fi
+# Note: This test reports false positives on non-gtk-doc comments and
+# non-public enum values, (such as CAIRO_FIXED_FRAC_BITS in the comment
+# for _cairo_output_stream_init). I'm opposed to uglifying those comments
+# with % just to shut this warning up. So instead, I'm turning this check
+# off. (cworth 2008-03-02)
+#
+# Meanwhile, I'd love to see a system that would just link things like
+# enums up without any decoration.
+#
+#enum_regexp='\([^%@]\|^\)\<\(FALSE\|TRUE\|NULL\|CAIRO_[0-9A-Z_]*[^(0-9A-Z_]\)'
+#if test "x$SGML_DOCS" = x; then
+#	enum_regexp='^[/ ][*] .*'$enum_regexp
+#fi
+#if grep "$enum_regexp" $FILES | grep -v '#####'; then
+#	status=1
+#	echo Error: some macros in the docs are not prefixed by percent sign.
+#	echo Fix this by searching for the following regexp in the above files:
+#	echo "	'$enum_regexp'"
+#fi
 
 type_regexp='\( .*[^#]\| \|^\)\<cairo[0-9a-z_]*_t\>\($\|[^:]$\|[^:].\)'
 if test "x$SGML_DOCS" = x; then
commit 0c17ca52aa63a9c77cff47c4ae42bc16e5220552
Author: Carl Worth <cworth at cworth.org>
Date:   Thu Mar 20 15:33:37 2008 -0700

    Mark new cairo_xlib_visual_info functions as private.

diff --git a/src/cairo-xlib-private.h b/src/cairo-xlib-private.h
index 09f06aa..5edb5d2 100644
--- a/src/cairo-xlib-private.h
+++ b/src/cairo-xlib-private.h
@@ -133,11 +133,11 @@ _cairo_xlib_screen_get_gc (cairo_xlib_screen_info_t *info, int depth);
 cairo_private cairo_status_t
 _cairo_xlib_screen_put_gc (cairo_xlib_screen_info_t *info, int depth, GC gc, cairo_bool_t reset_clip);
 
-cairo_xlib_visual_info_t *
+cairo_private cairo_xlib_visual_info_t *
 _cairo_xlib_screen_get_visual_info (cairo_xlib_screen_info_t *info,
 				    Visual *visual);
 
-cairo_xlib_visual_info_t *
+cairo_private cairo_xlib_visual_info_t *
 _cairo_xlib_visual_info_create (Display *dpy, int screen, VisualID visualid);
 
 #endif /* CAIRO_XLIB_PRIVATE_H */
commit f32f81fa1badce15403d922002f4fc59fe8b563a
Author: Carl Worth <cworth at cworth.org>
Date:   Thu Mar 20 13:49:29 2008 -0700

    Increment cairo version to 1.5.14 and libtool versioning to 18:1:16

diff --git a/configure.in b/configure.in
index 0c6d8bd..fd6cd4c 100644
--- a/configure.in
+++ b/configure.in
@@ -7,7 +7,7 @@ dnl For the micro number: odd => in-progress development (from git)
 dnl			  even => tar-file snapshot or release
 m4_define(cairo_version_major, 1)
 m4_define(cairo_version_minor, 5)
-m4_define(cairo_version_micro, 13)
+m4_define(cairo_version_micro, 14)
 
 AC_INIT([cairo],
       cairo_version_major.cairo_version_minor.cairo_version_micro,
@@ -30,7 +30,7 @@ LT_CURRENT=18
 
 # Increment any time the source changes; set to
 # 0 if you increment CURRENT
-LT_REVISION=0
+LT_REVISION=1
 
 # Increment if any interfaces have been added; set to 0
 # if any interfaces have been removed. removal has
commit ffa50c31d38c761b4bf247d3ac27933974b819d3
Author: Carl Worth <cworth at cworth.org>
Date:   Thu Mar 20 13:49:19 2008 -0700

    Doc template churn

diff --git a/doc/public/tmpl/cairo-font-face.sgml b/doc/public/tmpl/cairo-font-face.sgml
index 8a4e809..2dc6674 100644
--- a/doc/public/tmpl/cairo-font-face.sgml
+++ b/doc/public/tmpl/cairo-font-face.sgml
@@ -68,7 +68,7 @@ cairo_get_font_face().
 @CAIRO_FONT_TYPE_TOY: 
 @CAIRO_FONT_TYPE_FT: 
 @CAIRO_FONT_TYPE_WIN32: 
- at CAIRO_FONT_TYPE_ATSUI: 
+ at CAIRO_FONT_TYPE_QUARTZ: 
 
 <!-- ##### FUNCTION cairo_font_face_get_type ##### -->
 <para>
commit 3bb0474ea7d453793199d3ce7674fbe1ee8a324d
Author: Carl Worth <cworth at cworth.org>
Date:   Thu Mar 20 13:48:29 2008 -0700

    NEWS: Add notes for 1.5.14 snapshot

diff --git a/NEWS b/NEWS
index 47583ad..c6366e3 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,133 @@
+Snapshot 1.5.14 (2008-03-20 Carl Worth <cworth at cworth.org>)
+===========================================================
+This is the seventh snapshot in cairo's unstable 1.5 series. It comes
+3 weeks after the 1.5.12 snapshot. This snapshot includes support for
+arbitrary X server visuals, (including PseudoColor), which was the
+final remaining cairo-specific item on the cairo 1.6 roadmap. It also
+includes a huge number of improvements to the cairo-quartz backend. So
+this is effectively a cairo 1.6 release candidate. We expect very few
+changes from now until 1.6 and only for specific bug fixes.
+
+API Change
+----------
+Rename ATSUI font backend to Quartz font backend. This affects the
+following usage:
+
+	--enable-atsui		-> --enable-quartz-font
+	CAIRO_HAS_ATSUI_FONT 	-> CAIRO_HAS_QUARTZ_FONT
+	CAIRO_FONT_TYPE_ATSUI	-> CAIRO_FONT_TYPE_QUARTZ
+
+	cairo_atsui_font_face_create_for_atsu_font_id ->
+	cairo_quartz_font_font_create_for_atsu_font_id
+
+This API change is justified by the cairo-quartz backend still be
+marked as "experimental" rather than "supported", (though this is one
+step toward making the change to "supported" before 1.6). Cairo will
+still provide ABI compatibility with the old symbol name, however.
+
+paginated (all of ps, pdf, svg, and win32-printing)
+---------------------------------------------------
+Optimize by not analyzing an image surface for transparency more than
+once, (previously all images were analyzed twice).
+
+cairo-ps and cairo-pdf
+----------------------
+Avoiding emitting a matrix into the stroke output when unnecessary,
+(making output size more efficient).
+
+Reduce rounding error of path shapes by factoring large scale factors
+out of the path matrix, (ensuring that a fixed-number of printed
+digits for path coordinates contains as much information as possible).
+
+Reduce excess digits for text position coordinates. This makes the
+output file size much smaller without making the result any less
+correct.
+
+cairo-ps
+--------
+Eliminate bug causing extraneous text repetition on Linux PostScript
+output in some cases.
+
+	See: Mozilla Bug 419917 – Printed page contents are reflected
+	inside bordered tables (Linux-only)
+
+	https://bugzilla.mozilla.org/show_bug.cgi?id=419917
+
+Optimize output when EXTEND_PAD is used.
+
+cairo-pdf
+---------
+Fix to not use fill-stroke operator with transparent fill, (else PDF
+output doesn't match the cairo-defined correct result). See:
+
+	https://bugs.launchpad.net/inkscape/+bug/202096
+
+cairo-svg
+---------
+Fix stroke of path with a non-solid-color source pattern:
+
+	http://bugs.freedesktop.org/show_bug.cgi?id=14556
+
+cairo-quartz
+------------
+Fix text rendering with gradient or image source pattern.
+
+Handling antialiasing correctly for cairo_stroke(), cairo_clip(), and
+cairo_show_text()/cairo_show_glyphs().
+
+Correctly handle gradients with non-identity transformations:
+
+	Fixes http://bugs.freedesktop.org/show_bug.cgi?id=14248
+
+Add native implementation of REPEAT and REFLECT extend modes for
+gradients.
+
+Fix implementation for the "unbounded" operators, (CAIRO_OPERATOR_OUT,
+_IN, _DEST_IN, and _DEST_ATOP).
+
+Correctly handle endiannees in multi-architecture compiles on Mac OS
+X.
+
+Avoid behavior which would cause Core Graphics to print warnings to
+the console in some cases.
+
+cairo-win32
+-----------
+Fix handling of miter limit.
+
+cairo-win32-printing
+--------------------
+Fix to not use a 1bpp temporary surface in some cases while printing,
+(so grayscale data is preserved rather than just becoming black and
+white).
+
+cairo-xlib
+----------
+Add support for rendering to arbitrary TrueColor X server
+visuals. This fixes at least the following bugs:
+
+	cairo doesn't support 8-bit truecolor visuals
+	https://bugs.freedesktop.org/show_bug.cgi?id=7735
+
+	cairo doesn't support 655 xlib format
+	https://bugs.freedesktop.org/show_bug.cgi?id=9719
+
+Add support for rendering to 8-bit PseudoColor X server visuals. This
+fixes the following bug:
+
+	Cairo doesn't support 8-bit pseudocolor visuals
+	https://bugs.freedesktop.org/show_bug.cgi?id=4945
+
+Unresolved issues (must be fixed before cairo 1.6)
+--------------------------------------------------
+XXX: Need to decide if cairo_image_surface_create_for_data should be
+documented and tested as supporting an image with a negative
+stride. Also need to decide the correct return value for
+cairo_format_stride_for_width in case of any error.
+
 Snapshot 1.5.12 (2008-02-28 Carl Worth <cworth at cworth.org>)
 ===========================================================
-This is the sixth snapshot in cairo's unstable 1.6 series. It comes 1
+This is the sixth snapshot in cairo's unstable 1.5 series. It comes 1
 week after the 1.5.10 snapshot. This snapshot includes the
 long-awaited change from 16.16 to 24.8 fixed-point values, (see below
 for why you should care).  It also includes several backend-specific
commit 191440101e815fe9be23bb6fbb36114de65d8c2d
Author: Carl Worth <cworth at cworth.org>
Date:   Thu Mar 20 12:33:17 2008 -0700

    Fix the REFERENCE_IMAGES list, (like always before a snapshot)

diff --git a/test/Makefile.am b/test/Makefile.am
index 61edb73..03ecd9e 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -281,7 +281,7 @@ REFERENCE_IMAGES = \
 	clip-operator-ps-argb32-ref.png	\
 	clip-operator-rgb24-ref.png	\
 	clip-operator-quartz-ref.png	\
-	clip-operator-quartz-rgb24ref.png	\
+	clip-operator-quartz-rgb24-ref.png	\
 	clip-push-group-ps-argb32-ref.png	\
 	clip-push-group-ps-rgb24-ref.png	\
 	clip-push-group-quartz-ref.png	\
@@ -566,6 +566,7 @@ REFERENCE_IMAGES = \
 	source-clip-scale-pdf-ref.png \
 	source-surface-scale-paint-ref.png	\
 	source-surface-scale-paint-rgb24-ref.png	\
+	stroke-ctm-caps-ps-ref.png \
 	surface-pattern-big-scale-down-ref.png	\
 	surface-pattern-pdf-argb32-ref.png	\
 	surface-pattern-ps-argb32-ref.png	\
@@ -594,7 +595,6 @@ REFERENCE_IMAGES = \
 	text-pattern-svg-rgb24-ref.png	\
 	text-pattern-pdf-argb32-ref.png \
 	text-pattern-pdf-rgb24-ref.png \
-	text-pattern-quartz-argb32-ref.png \
 	text-pattern-quartz-rgb24-ref.png \
 	text-rotate-ref.png	\
 	text-rotate-ps-ref.png	\


More information about the cairo-commit mailing list