Mailinglist Archive: opensuse-commit (2092 mails)

< Previous Next >
commit librsvg
  • From: root@xxxxxxxxxxxxxxx (h_root)
  • Date: Fri, 31 Aug 2007 15:55:19 +0200
  • Message-id: <20070831135519.C870F678180@xxxxxxxxxxxxxxx>

Hello community,

here is the log from the commit of package librsvg
checked in at Fri Aug 31 15:55:19 CEST 2007.

--------
--- GNOME/librsvg/librsvg.changes       2007-08-02 02:09:29.000000000 +0200
+++ /mounts/work_src_done/STABLE/librsvg/librsvg.changes        2007-08-30 23:27:43.025190000 +0200
@@ -1,0 +2,9 @@
+Thu Aug 30 23:10:58 CEST 2007 - maw@xxxxxxx
+
+- Update to version 2.18.1:
+  + Basic support for SVG 1.1's text-rendering and shape-rendering
+    properties (bugzilla.gnome.org #464599)
+- M-x replace-string RET %run_ldconfig RET /sbin/ldconfig RET
+- Add librsvg-64bit-warning.patch.
+
+-------------------------------------------------------------------

Old:
----
  librsvg-2.18.0.tar.bz2

New:
----
  librsvg-2.18.1.tar.bz2
  librsvg-64bit-warning.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ librsvg.spec ++++++
--- /var/tmp/diff_new_pack.g19809/_old  2007-08-31 15:54:42.000000000 +0200
+++ /var/tmp/diff_new_pack.g19809/_new  2007-08-31 15:54:42.000000000 +0200
@@ -1,5 +1,5 @@
 #
-# spec file for package librsvg (Version 2.18.0)
+# spec file for package librsvg (Version 2.18.1)
 #
 # Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
 # This file and all modifications and additions to the pristine
@@ -24,11 +24,12 @@
 BuildRequires:  gecko-sdk
 %endif
 PreReq:         coreutils
-Version:        2.18.0
+Version:        2.18.1
 Release:        1
 Summary:        A Library for Rendering SVG Data
 Source:         ftp://ftp.gnome.org/pub/GNOME/sources/librsvg/2.18/%{name}-%{version}.tar.bz2
 Patch1:         env-paths.diff
+Patch2:         librsvg-64bit-warning.patch
 URL:            http://librsvg.sourceforge.net/
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
@@ -48,7 +49,7 @@
 Group:          Development/Libraries/C and C++
 Provides:       librsvg2-devel
 Obsoletes:      librsvg2-devel
-Requires:       %{name} = %{version} libcroco-devel glib2-devel gtk2-devel libgsf-devel libart_lgpl-devel popt-devel
+Requires:       %{name} = %{version} libcroco-devel libbz2-devel glib2-devel gtk2-devel libgsf-devel libart_lgpl-devel popt-devel
 
 %description devel
 This package contains all necessary include files and libraries needed
@@ -79,6 +80,7 @@
 %prep
 %setup -q
 %patch1
+%patch2 -p1
 
 %build
 autoreconf -f -i
@@ -101,11 +103,11 @@
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%run_ldconfig
+/sbin/ldconfig
 touch var/adm/SuSEconfig/run-gtk
 
 %postun
-%run_ldconfig
+/sbin/ldconfig
 touch var/adm/SuSEconfig/run-gtk
 
 %files
@@ -138,6 +140,12 @@
 %{_libdir}/browser-plugins/*.so
 
 %changelog
+* Thu Aug 30 2007 - maw@xxxxxxx
+- Update to version 2.18.1:
+  + Basic support for SVG 1.1's text-rendering and shape-rendering
+  properties (bugzilla.gnome.org #464599)
+- M-x replace-string RET %%run_ldconfig RET /sbin/ldconfig RET
+- Add librsvg-64bit-warning.patch.
 * Thu Aug 02 2007 - mauro@xxxxxxx
 - Updated to 2.18.0
 - Bugfixes for #412682, #418823, #401115, #444462, #452823, #448327,

++++++ librsvg-2.18.0.tar.bz2 -> librsvg-2.18.1.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librsvg-2.18.0/ChangeLog new/librsvg-2.18.1/ChangeLog
--- old/librsvg-2.18.0/ChangeLog        2007-07-24 16:53:24.000000000 +0200
+++ new/librsvg-2.18.1/ChangeLog        2007-08-20 21:07:09.000000000 +0200
@@ -1,3 +1,10 @@
+2007-08-20  Dom Lachowicz <domlachowicz@xxxxxxxxx>
+
+       * rsvg-styles.c: Basic support for SVG 1.1's text-rendering and shape-rendering properties (#464599)
+       http://www.w3.org/TR/SVG/painting.html#ShapeRenderingProperty
+       * rsvg-styles.h: Ditto
+       * rsvg-cairo-draw.c: Ditto
+       
 2007-07-24  Dom Lachowicz <domlachowicz@xxxxxxxxx>
 
        * configure.in: Bump version to 2.18.0
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librsvg-2.18.0/configure new/librsvg-2.18.1/configure
--- old/librsvg-2.18.0/configure        2007-07-24 17:01:31.000000000 +0200
+++ new/librsvg-2.18.1/configure        2007-08-20 21:11:10.000000000 +0200
@@ -2073,7 +2073,7 @@
 
 LIBRSVG_MAJOR_VERSION=2
 LIBRSVG_MINOR_VERSION=18
-LIBRSVG_MICRO_VERSION=0
+LIBRSVG_MICRO_VERSION=1
 
 
 
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librsvg-2.18.0/configure.in new/librsvg-2.18.1/configure.in
--- old/librsvg-2.18.0/configure.in     2007-07-24 16:53:09.000000000 +0200
+++ new/librsvg-2.18.1/configure.in     2007-08-20 21:10:54.000000000 +0200
@@ -20,7 +20,7 @@
 
 LIBRSVG_MAJOR_VERSION=2
 LIBRSVG_MINOR_VERSION=18
-LIBRSVG_MICRO_VERSION=0
+LIBRSVG_MICRO_VERSION=1
 AC_SUBST(LIBRSVG_MAJOR_VERSION)
 AC_SUBST(LIBRSVG_MINOR_VERSION)
 AC_SUBST(LIBRSVG_MICRO_VERSION)
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librsvg-2.18.0/doc/html/ix01.html new/librsvg-2.18.1/doc/html/ix01.html
--- old/librsvg-2.18.0/doc/html/ix01.html       2007-07-24 17:04:00.000000000 +0200
+++ new/librsvg-2.18.1/doc/html/ix01.html       2007-08-20 21:12:47.000000000 +0200
@@ -25,7 +25,7 @@
 </tr></table>
 <div class="index">
 <div class="titlepage"><div><div><h2 class="title">
-<a name="id2557482"></a>Index</h2></div></div></div>
+<a name="id2557483"></a>Index</h2></div></div></div>
 <div class="informaltable"><table width="100%" border="0">
 <colgroup>
 <col>
@@ -69,7 +69,7 @@
 </dt>
 <dt>rsvg_handle_get_title, <a href="rsvg-Core-API.html#id2550355">rsvg_handle_get_title ()</a>
 </dt>
-<dt>rsvg_handle_new, <a href="rsvg-Core-API.html#id2548635">rsvg_handle_new ()</a>
+<dt>rsvg_handle_new, <a href="rsvg-Core-API.html#id2548636">rsvg_handle_new ()</a>
 </dt>
 <dt>rsvg_handle_new_from_data, <a href="rsvg-Core-API.html#id2549455">rsvg_handle_new_from_data ()</a>
 </dt>
@@ -77,13 +77,13 @@
 </dt>
 <dt>rsvg_handle_render_cairo, <a href="rsvg-Cairo.html#id2553807">rsvg_handle_render_cairo ()</a>
 </dt>
-<dt>rsvg_handle_render_cairo_sub, <a href="rsvg-Cairo.html#id2553901">rsvg_handle_render_cairo_sub ()</a>
+<dt>rsvg_handle_render_cairo_sub, <a href="rsvg-Cairo.html#id2553902">rsvg_handle_render_cairo_sub ()</a>
 </dt>
 <dt>rsvg_handle_set_base_uri, <a href="rsvg-Core-API.html#id2550242">rsvg_handle_set_base_uri ()</a>
 </dt>
-<dt>rsvg_handle_set_dpi, <a href="rsvg-Core-API.html#id2548834">rsvg_handle_set_dpi ()</a>
+<dt>rsvg_handle_set_dpi, <a href="rsvg-Core-API.html#id2548835">rsvg_handle_set_dpi ()</a>
 </dt>
-<dt>rsvg_handle_set_dpi_x_y, <a href="rsvg-Core-API.html#id2548947">rsvg_handle_set_dpi_x_y ()</a>
+<dt>rsvg_handle_set_dpi_x_y, <a href="rsvg-Core-API.html#id2548948">rsvg_handle_set_dpi_x_y ()</a>
 </dt>
 <dt>rsvg_handle_set_size_callback, <a href="rsvg-Core-API.html#id2549922">rsvg_handle_set_size_callback ()</a>
 </dt>
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librsvg-2.18.0/doc/html/rsvg-Cairo.html new/librsvg-2.18.1/doc/html/rsvg-Cairo.html
--- old/librsvg-2.18.0/doc/html/rsvg-Cairo.html 2007-07-24 17:04:00.000000000 +0200
+++ new/librsvg-2.18.1/doc/html/rsvg-Cairo.html 2007-08-20 21:12:47.000000000 +0200
@@ -27,7 +27,7 @@
 </tr>
 <tr><td colspan="5" class="shortcuts"><nobr><a href="#id2553705" class="shortcut">Top</a>
                   &#160;|&#160;
-                  <a href="#id2553782" class="shortcut">Description</a></nobr></td></tr>
+                  <a href="#id2553783" class="shortcut">Description</a></nobr></td></tr>
 </table>
 <div class="refentry" lang="en">
 <a name="rsvg-Cairo"></a><div class="titlepage"></div>
@@ -54,7 +54,7 @@
 </pre>
 </div>
 <div class="refsect1" lang="en">
-<a name="id2553782"></a><h2>Description</h2>
+<a name="id2553783"></a><h2>Description</h2>
 <p>
 
 </p>
@@ -91,7 +91,7 @@
 </div>
 <hr>
 <div class="refsect2" lang="en">
-<a name="id2553901"></a><h3>
+<a name="id2553902"></a><h3>
 <a name="rsvg-handle-render-cairo-sub"></a>rsvg_handle_render_cairo_sub ()</h3>
 <a class="indexterm" name="id2553917"></a><pre class="programlisting">void                rsvg_handle_render_cairo_sub        (RsvgHandle *handle,
                                                          cairo_t *cr,
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librsvg-2.18.0/doc/html/rsvg-Core-API.html new/librsvg-2.18.1/doc/html/rsvg-Core-API.html
--- old/librsvg-2.18.0/doc/html/rsvg-Core-API.html      2007-07-24 17:04:00.000000000 +0200
+++ new/librsvg-2.18.1/doc/html/rsvg-Core-API.html      2007-08-20 21:12:47.000000000 +0200
@@ -117,7 +117,8 @@
 <div class="refsect2" lang="en">
 <a name="id2548270"></a><h3>
 <a name="RSVG-ERROR:CAPS"></a>RSVG_ERROR</h3>
-<a class="indexterm" name="id2548283"></a><pre class="programlisting">#define             RSVG_ERROR</pre>
+<a class="indexterm" name="id2548283"></a><pre class="programlisting">#define RSVG_ERROR (rsvg_error_quark ())
+</pre>
 <p>
 
 </p>
@@ -171,7 +172,7 @@
 <div class="refsect2" lang="en">
 <a name="id2548446"></a><h3>
 <a name="rsvg-set-default-dpi"></a>rsvg_set_default_dpi ()</h3>
-<a class="indexterm" name="id2548461"></a><pre class="programlisting">void                rsvg_set_default_dpi                (double dpi);</pre>
+<a class="indexterm" name="id2548462"></a><pre class="programlisting">void                rsvg_set_default_dpi                (double dpi);</pre>
 <p>
 Sets the DPI for the all future outgoing pixbufs. Common values are
 75, 90, and 300 DPI. Passing a number &lt;= 0 to <span class="type">dpi</span> will 
@@ -223,7 +224,7 @@
 </div>
 <hr>
 <div class="refsect2" lang="en">
-<a name="id2548635"></a><h3>
+<a name="id2548636"></a><h3>
 <a name="rsvg-handle-new"></a>rsvg_handle_new ()</h3>
 <a class="indexterm" name="id2548648"></a><pre class="programlisting">RsvgHandle*         rsvg_handle_new                     (void);</pre>
 <p>
@@ -270,7 +271,7 @@
 </div>
 <hr>
 <div class="refsect2" lang="en">
-<a name="id2548834"></a><h3>
+<a name="id2548835"></a><h3>
 <a name="rsvg-handle-set-dpi"></a>rsvg_handle_set_dpi ()</h3>
 <a class="indexterm" name="id2548850"></a><pre class="programlisting">void                rsvg_handle_set_dpi                 (RsvgHandle *handle,
                                                          double dpi);</pre>
@@ -301,9 +302,9 @@
 </div>
 <hr>
 <div class="refsect2" lang="en">
-<a name="id2548947"></a><h3>
+<a name="id2548948"></a><h3>
 <a name="rsvg-handle-set-dpi-x-y"></a>rsvg_handle_set_dpi_x_y ()</h3>
-<a class="indexterm" name="id2548962"></a><pre class="programlisting">void                rsvg_handle_set_dpi_x_y             (RsvgHandle *handle,
+<a class="indexterm" name="id2548963"></a><pre class="programlisting">void                rsvg_handle_set_dpi_x_y             (RsvgHandle *handle,
                                                          double dpi_x,
                                                          double dpi_y);</pre>
 <p>
@@ -423,7 +424,7 @@
 <div class="refsect2" lang="en">
 <a name="id2549455"></a><h3>
 <a name="rsvg-handle-new-from-data"></a>rsvg_handle_new_from_data ()</h3>
-<a class="indexterm" name="id2549470"></a><pre class="programlisting">RsvgHandle*         rsvg_handle_new_from_data           (const guint8 *data,
+<a class="indexterm" name="id2549471"></a><pre class="programlisting">RsvgHandle*         rsvg_handle_new_from_data           (const guint8 *data,
                                                          gsize data_len,
                                                          GError **error);</pre>
 <p>
@@ -463,7 +464,7 @@
 <div class="refsect2" lang="en">
 <a name="id2549610"></a><h3>
 <a name="rsvg-handle-new-from-file"></a>rsvg_handle_new_from_file ()</h3>
-<a class="indexterm" name="id2549625"></a><pre class="programlisting">RsvgHandle*         rsvg_handle_new_from_file           (const gchar *file_name,
+<a class="indexterm" name="id2549626"></a><pre class="programlisting">RsvgHandle*         rsvg_handle_new_from_file           (const gchar *file_name,
                                                          GError **error);</pre>
 <p>
 Loads the SVG specified by <span class="type">file_name</span>.</p>
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librsvg-2.18.0/doc/html/rsvg-GdkPixbuf.html new/librsvg-2.18.1/doc/html/rsvg-GdkPixbuf.html
--- old/librsvg-2.18.0/doc/html/rsvg-GdkPixbuf.html     2007-07-24 17:04:00.000000000 +0200
+++ new/librsvg-2.18.1/doc/html/rsvg-GdkPixbuf.html     2007-08-20 21:12:47.000000000 +0200
@@ -27,7 +27,7 @@
 </tr>
 <tr><td colspan="5" class="shortcuts"><nobr><a href="#id2553348" class="shortcut">Top</a>
                   &#160;|&#160;
-                  <a href="#id2554762" class="shortcut">Description</a></nobr></td></tr>
+                  <a href="#id2554763" class="shortcut">Description</a></nobr></td></tr>
 </table>
 <div class="refentry" lang="en">
 <a name="rsvg-GdkPixbuf"></a><div class="titlepage"></div>
@@ -75,7 +75,7 @@
 </pre>
 </div>
 <div class="refsect1" lang="en">
-<a name="id2554762"></a><h2>Description</h2>
+<a name="id2554763"></a><h2>Description</h2>
 <p>
 GdkPixbuf is a library for image loading and manipulation. It is part of the cross-platform GTK+ widget toolkit.
 </p>
@@ -245,7 +245,7 @@
 <div class="refsect2" lang="en">
 <a name="id2555524"></a><h3>
 <a name="rsvg-pixbuf-from-file-at-size"></a>rsvg_pixbuf_from_file_at_size ()</h3>
-<a class="indexterm" name="id2555541"></a><pre class="programlisting">GdkPixbuf*          rsvg_pixbuf_from_file_at_size       (const gchar *file_name,
+<a class="indexterm" name="id2555542"></a><pre class="programlisting">GdkPixbuf*          rsvg_pixbuf_from_file_at_size       (const gchar *file_name,
                                                          gint width,
                                                          gint height,
                                                          GError **error);</pre>
@@ -348,7 +348,7 @@
 <div class="refsect2" lang="en">
 <a name="id2555999"></a><h3>
 <a name="rsvg-pixbuf-from-file-at-zoom-with-max"></a>rsvg_pixbuf_from_file_at_zoom_with_max ()</h3>
-<a class="indexterm" name="id2556016"></a><pre class="programlisting">GdkPixbuf*          rsvg_pixbuf_from_file_at_zoom_with_max
+<a class="indexterm" name="id2556017"></a><pre class="programlisting">GdkPixbuf*          rsvg_pixbuf_from_file_at_zoom_with_max
                                                         (const gchar *file_name,
                                                          double x_zoom,
                                                          double y_zoom,
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librsvg-2.18.0/doc/tmpl/rsvg-cairo.sgml new/librsvg-2.18.1/doc/tmpl/rsvg-cairo.sgml
--- old/librsvg-2.18.0/doc/tmpl/rsvg-cairo.sgml 2007-07-24 17:04:00.000000000 +0200
+++ new/librsvg-2.18.1/doc/tmpl/rsvg-cairo.sgml 2007-08-20 21:12:47.000000000 +0200
@@ -9,13 +9,11 @@
 
 </para>
 
-
 <!-- ##### SECTION See_Also ##### -->
 <para>
 
 </para>
 
-
 <!-- ##### SECTION Stability_Level ##### -->
 
 
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librsvg-2.18.0/doc/xml/rsvg.xml new/librsvg-2.18.1/doc/xml/rsvg.xml
--- old/librsvg-2.18.0/doc/xml/rsvg.xml 2007-07-24 17:04:00.000000000 +0200
+++ new/librsvg-2.18.1/doc/xml/rsvg.xml 2007-08-20 21:12:47.000000000 +0200
@@ -95,7 +95,8 @@
 </para></refsect2>
 <refsect2>
 <title><anchor id="RSVG-ERROR:CAPS" role="macro"/>RSVG_ERROR</title>
-<indexterm><primary>RSVG_ERROR</primary></indexterm><programlisting>#define             RSVG_ERROR</programlisting>
+<indexterm><primary>RSVG_ERROR</primary></indexterm><programlisting>#define RSVG_ERROR (rsvg_error_quark ())
+</programlisting>
 <para>
 
 </para></refsect2>
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librsvg-2.18.0/librsvg-features.h new/librsvg-2.18.1/librsvg-features.h
--- old/librsvg-2.18.0/librsvg-features.h       2007-07-24 17:03:17.000000000 +0200
+++ new/librsvg-2.18.1/librsvg-features.h       2007-08-20 21:12:38.000000000 +0200
@@ -3,7 +3,7 @@
 
 #define LIBRSVG_MAJOR_VERSION (2)
 #define LIBRSVG_MINOR_VERSION (18)
-#define LIBRSVG_MICRO_VERSION (0)
+#define LIBRSVG_MICRO_VERSION (1)
 #define LIBRSVG_VERSION ""
 
 extern const unsigned int librsvg_major_version, librsvg_minor_version, librsvg_micro_version;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librsvg-2.18.0/librsvg.spec new/librsvg-2.18.1/librsvg.spec
--- old/librsvg-2.18.0/librsvg.spec     2007-07-24 17:04:00.000000000 +0200
+++ new/librsvg-2.18.1/librsvg.spec     2007-08-20 21:12:47.000000000 +0200
@@ -2,7 +2,7 @@
 %define __spec_install_post /usr/lib/rpm/brp-compress
 Name:             librsvg2
 Summary:          An SVG library based on cairo.
-Version:          2.18.0
+Version:          2.18.1
 Release:          2
 License:          LGPL
 Group:            System Environment/Libraries
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librsvg-2.18.0/MAINTAINERS new/librsvg-2.18.1/MAINTAINERS
--- old/librsvg-2.18.0/MAINTAINERS      2007-04-24 00:45:56.000000000 +0200
+++ new/librsvg-2.18.1/MAINTAINERS      2007-08-13 19:50:04.000000000 +0200
@@ -1,6 +1,8 @@
-Dom Lachowicz     <cinamod@xxxxxxxxxxx>
-Caleb Moore       <c.moore@xxxxxxxxxxxxxxxxxxx>
+Dominic Lachowicz
+Email: domlachowicz@xxxxxxxxx
+Userid: doml
 
 Prior maintainers:
 Raph Levien <raph@xxxxxxxxxxxxx>
 Alexander Larsson <alexl@xxxxxxxxxx>
+Caleb Moore       <c.moore@xxxxxxxxxxxxxxxxxxx>
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librsvg-2.18.0/NEWS new/librsvg-2.18.1/NEWS
--- old/librsvg-2.18.0/NEWS     2007-07-24 16:57:46.000000000 +0200
+++ new/librsvg-2.18.1/NEWS     2007-08-20 21:09:47.000000000 +0200
@@ -6,6 +6,7 @@
 - Support compressed SVG from the GdkPixbuf plugin
 - CSS fixes
 - Better support for SVG conditionals
+- Support for SVG 1.1's shape-rendering and text-rendering properties
 
 Version 2.7.x
 
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librsvg-2.18.0/rsvg-cairo-draw.c new/librsvg-2.18.1/rsvg-cairo-draw.c
--- old/librsvg-2.18.0/rsvg-cairo-draw.c        2007-07-20 19:57:48.000000000 +0200
+++ new/librsvg-2.18.1/rsvg-cairo-draw.c        2007-08-20 20:57:15.000000000 +0200
@@ -42,6 +42,32 @@
 #include <pango/pangocairo.h>
 
 static void
+_rsvg_cairo_set_shape_antialias (cairo_t * cr, ShapeRenderingProperty aa)
+{
+       if (SHAPE_RENDERING_AUTO == aa)
+               cairo_set_antialias (cr, CAIRO_ANTIALIAS_DEFAULT);
+       else if (SHAPE_RENDERING_OPTIMIZE_SPEED == aa)
+               cairo_set_antialias (cr, CAIRO_ANTIALIAS_NONE);
+       else if (SHAPE_RENDERING_CRISP_EDGES == aa)
+               cairo_set_antialias (cr, CAIRO_ANTIALIAS_DEFAULT);
+       else if (SHAPE_RENDERING_GEOMETRIC_PRECISION == aa)
+               cairo_set_antialias (cr, CAIRO_ANTIALIAS_DEFAULT);
+}
+
+static void
+_rsvg_cairo_set_text_antialias (cairo_t * cr, TextRenderingProperty aa)
+{
+       if (TEXT_RENDERING_AUTO == aa)
+               cairo_set_antialias (cr, CAIRO_ANTIALIAS_DEFAULT);
+       else if (TEXT_RENDERING_OPTIMIZE_SPEED == aa)
+               cairo_set_antialias (cr, CAIRO_ANTIALIAS_NONE);
+       else if (TEXT_RENDERING_OPTIMIZE_LEGIBILITY == aa)
+               cairo_set_antialias (cr, CAIRO_ANTIALIAS_DEFAULT);
+       else if (TEXT_RENDERING_GEOMETRIC_PRECISION == aa)
+               cairo_set_antialias (cr, CAIRO_ANTIALIAS_DEFAULT);
+}
+
+static void
 _rsvg_cairo_set_operator (cairo_t * cr, RsvgCompOpType comp_op)
 {
     cairo_operator_t op;
@@ -446,6 +472,9 @@
     RsvgBbox bbox;
 
     cairo_save (render->cr);
+
+       _rsvg_cairo_set_text_antialias (render->cr, state->text_rendering_type);
+
     _set_rsvg_affine (render->cr, state->affine);
     cairo_set_line_width (render->cr, _rsvg_css_normalize_length (&state->stroke_width, ctx, 'h'));
 
@@ -513,6 +542,8 @@
 
     cairo_save (cr);
 
+       _rsvg_cairo_set_shape_antialias (cr, state->shape_rendering_type);
+
     _set_rsvg_affine (cr, state->affine);
 
     cairo_set_line_width (cr, _rsvg_css_normalize_length (&state->stroke_width, ctx, 'h'));
@@ -709,7 +740,25 @@
     }
 
     _rsvg_cairo_set_operator (render->cr, state->comp_op);
+
+#if 1
     cairo_set_source_surface (render->cr, surface, pixbuf_x, pixbuf_y);
+#else
+       {
+               cairo_pattern_t *pattern;
+               cairo_matrix_t matrix;
+
+               pattern = cairo_pattern_create_for_surface (surface);
+               cairo_pattern_set_extend (pattern, CAIRO_EXTEND_PAD);
+
+               cairo_matrix_init_translate (&matrix, -pixbuf_x, -pixbuf_y);
+               cairo_pattern_set_matrix (pattern, &matrix);
+
+               cairo_set_source (render->cr, pattern);
+               cairo_pattern_destroy (pattern);
+       }
+#endif
+
     cairo_paint (render->cr);
     cairo_surface_destroy (surface);
 
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librsvg-2.18.0/rsvg-styles.c new/librsvg-2.18.1/rsvg-styles.c
--- old/librsvg-2.18.0/rsvg-styles.c    2007-07-20 19:22:40.000000000 +0200
+++ new/librsvg-2.18.1/rsvg-styles.c    2007-08-20 21:03:06.000000000 +0200
@@ -126,6 +126,11 @@
     state->has_middleMarker = FALSE;
     state->has_endMarker = FALSE;
     state->has_overflow = FALSE;
+
+       state->shape_rendering_type = SHAPE_RENDERING_AUTO;
+       state->has_shape_rendering_type = FALSE;
+       state->text_rendering_type = TEXT_RENDERING_AUTO;
+       state->has_text_rendering_type = FALSE;
 }
 
 typedef int (*InheritanceFunction) (int dst, int src);
@@ -231,6 +236,10 @@
         dst->middleMarker = src->middleMarker;
     if (function (dst->has_endMarker, src->has_endMarker))
         dst->endMarker = src->endMarker;
+       if (function (dst->has_shape_rendering_type, src->has_shape_rendering_type))
+               dst->shape_rendering_type = src->shape_rendering_type;
+       if (function (dst->has_text_rendering_type, src->has_text_rendering_type))
+               dst->text_rendering_type = src->text_rendering_type;
 
     if (function (dst->has_font_family, src->has_font_family)) {
         g_free (dst->font_family);      /* font_family is always set to something */
@@ -645,6 +654,30 @@
         state->dash.offset = _rsvg_css_parse_length (str + arg_off);
         if (state->dash.offset.length < 0.)
             state->dash.offset.length = 0.;
+       } else if (rsvg_css_param_match (str, "shape-rendering")) {
+               state->has_shape_rendering_type = TRUE;
+
+        if (!strcmp (str + arg_off, "auto") || !strcmp (str + arg_off, "default"))
+                       state->shape_rendering_type = SHAPE_RENDERING_AUTO;
+        else if (!strcmp (str + arg_off, "optimizeSpeed"))
+                       state->shape_rendering_type = SHAPE_RENDERING_OPTIMIZE_SPEED;
+        else if (!strcmp (str + arg_off, "crispEdges"))
+                       state->shape_rendering_type = SHAPE_RENDERING_CRISP_EDGES;
+        else if (!strcmp (str + arg_off, "geometricPrecision"))
+                       state->shape_rendering_type = SHAPE_RENDERING_GEOMETRIC_PRECISION;
+
+       } else if (rsvg_css_param_match (str, "text-rendering")) {
+               state->has_text_rendering_type = TRUE;
+
+        if (!strcmp (str + arg_off, "auto" || !strcmp (str + arg_off, "default")))
+                       state->text_rendering_type = TEXT_RENDERING_AUTO;
+        else if (!strcmp (str + arg_off, "optimizeSpeed"))
+                       state->text_rendering_type = TEXT_RENDERING_OPTIMIZE_SPEED;
+        else if (!strcmp (str + arg_off, "optimizeLegibility"))
+                       state->text_rendering_type = TEXT_RENDERING_OPTIMIZE_LEGIBILITY;
+        else if (!strcmp (str + arg_off, "geometricPrecision"))
+                       state->text_rendering_type = TEXT_RENDERING_GEOMETRIC_PRECISION;
+
     } else if (rsvg_css_param_match (str, "stroke-dasharray")) {
         state->has_dash = TRUE;
         if (!strcmp (str + arg_off, "none")) {
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/librsvg-2.18.0/rsvg-styles.h new/librsvg-2.18.1/rsvg-styles.h
--- old/librsvg-2.18.0/rsvg-styles.h    2007-04-24 00:45:56.000000000 +0200
+++ new/librsvg-2.18.1/rsvg-styles.h    2007-08-20 20:46:13.000000000 +0200
@@ -61,6 +61,20 @@
 } UnicodeBidi;
 
 typedef enum {
+    SHAPE_RENDERING_AUTO = 0,
+    SHAPE_RENDERING_OPTIMIZE_SPEED,
+    SHAPE_RENDERING_CRISP_EDGES,
+    SHAPE_RENDERING_GEOMETRIC_PRECISION
+} ShapeRenderingProperty;
+
+typedef enum {
+    TEXT_RENDERING_AUTO = 0,
+    TEXT_RENDERING_OPTIMIZE_SPEED,
+    TEXT_RENDERING_OPTIMIZE_LEGIBILITY,
+    TEXT_RENDERING_GEOMETRIC_PRECISION
+} TextRenderingProperty;
+
+typedef enum {
     RSVG_COMP_OP_CLEAR,
     RSVG_COMP_OP_SRC,
     RSVG_COMP_OP_DST,
@@ -211,6 +225,12 @@
 
     RsvgCompOpType comp_op;
     RsvgEnableBackgroundType enable_background;
+
+    ShapeRenderingProperty shape_rendering_type;
+    gboolean has_shape_rendering_type;
+    
+    TextRenderingProperty text_rendering_type;
+    gboolean has_text_rendering_type;
 };
 
 RsvgState *rsvg_state_new ();

++++++ librsvg-64bit-warning.patch ++++++
Index: librsvg-2.18.1/rsvg-styles.c
===================================================================
--- librsvg-2.18.1.orig/rsvg-styles.c
+++ librsvg-2.18.1/rsvg-styles.c
@@ -669,7 +669,7 @@ rsvg_parse_style_arg (RsvgHandle * ctx, 
        } else if (rsvg_css_param_match (str, "text-rendering")) {
                state->has_text_rendering_type = TRUE;
 
-        if (!strcmp (str + arg_off, "auto" || !strcmp (str + arg_off, "default")))
+        if (!strcmp (str + arg_off, "auto") || !strcmp (&str[arg_off], "default"))
                        state->text_rendering_type = TEXT_RENDERING_AUTO;
         else if (!strcmp (str + arg_off, "optimizeSpeed"))
                        state->text_rendering_type = TEXT_RENDERING_OPTIMIZE_SPEED;

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread