[librsvg/librsvg-2.40] Use a hard-coded font file to render test images, for predictable font rendering



commit c92772d25005f15f8e95418138959109baa0f5b3
Author: Federico Mena Quintero <federico gnome org>
Date:   Wed Jan 4 15:00:00 2017 -0600

    Use a hard-coded font file to render test images, for predictable font rendering
    
    If we depend on whatever Fontconfig finds on the system (or the user's
    configuration, or any number of variables not under our control), "make
    distcheck" will certainly fail.
    
    Now we ship a specific font file (LiberationSans-Regular.ttf) that is
    used only for the reftests.  We use that in addition to explicitly
    setting font rendering options for tests.
    
    Also, re-normalize all the reference images to this new font.
    
    Thanks to Vlad Vukicevic for the idea to use a hard-coded font file, and
    to Christian Hergert for the Fontconfig / Pango incantations.

 Makefile.am                                        |    1 +
 rsvg-cairo-draw.c                                  |   37 ++++++++++++++-
 rsvg-cairo-render.c                                |    6 +++
 rsvg-cairo-render.h                                |    3 +
 tests/Makefile.am                                  |   47 ++++++++++---------
 tests/fixtures/reftests/bugs/749415-ref.png        |  Bin 21402 -> 21862 bytes
 .../reftests/svg1.1/filters-color-02-b-ref.png     |  Bin 0 -> 6231 bytes
 .../reftests/svg1.1/filters-composite-02-b-ref.png |  Bin 0 -> 16647 bytes
 .../reftests/svg1.1/painting-marker-01-f-ref.png   |  Bin 0 -> 8454 bytes
 .../reftests/svg1.1/painting-marker-02-f-ref.png   |  Bin 0 -> 9172 bytes
 .../reftests/svg1.1/painting-marker-03-f-ref.png   |  Bin 0 -> 29006 bytes
 .../reftests/svg1.1/painting-marker-04-f-ref.png   |  Bin 0 -> 27598 bytes
 .../reftests/svg1.1/painting-marker-06-f-ref.png   |  Bin 0 -> 8640 bytes
 .../reftests/svg1.1/painting-marker-07-f-ref.png   |  Bin 0 -> 5158 bytes
 .../svg1.1/painting-marker-properties-01-f-ref.png |  Bin 0 -> 6175 bytes
 .../reftests/svg1.1/paths-data-01-t-ref.png        |  Bin 0 -> 25436 bytes
 .../reftests/svg1.1/paths-data-02-t-ref.png        |  Bin 0 -> 32917 bytes
 .../reftests/svg1.1/paths-data-03-f-ref.png        |  Bin 0 -> 30956 bytes
 .../reftests/svg1.1/paths-data-04-t-ref.png        |  Bin 0 -> 18160 bytes
 .../reftests/svg1.1/paths-data-05-t-ref.png        |  Bin 0 -> 16048 bytes
 .../reftests/svg1.1/paths-data-06-t-ref.png        |  Bin 0 -> 7255 bytes
 .../reftests/svg1.1/paths-data-07-t-ref.png        |  Bin 0 -> 6646 bytes
 .../reftests/svg1.1/paths-data-08-t-ref.png        |  Bin 0 -> 19314 bytes
 .../reftests/svg1.1/paths-data-09-t-ref.png        |  Bin 0 -> 17595 bytes
 .../reftests/svg1.1/paths-data-10-t-ref.png        |  Bin 0 -> 20995 bytes
 .../reftests/svg1.1/paths-data-12-t-ref.png        |  Bin 0 -> 9704 bytes
 .../reftests/svg1.1/paths-data-13-t-ref.png        |  Bin 0 -> 4526 bytes
 .../reftests/svg1.1/paths-data-14-t-ref.png        |  Bin 0 -> 12525 bytes
 .../reftests/svg1.1/paths-data-15-t-ref.png        |  Bin 0 -> 6001 bytes
 .../reftests/svg1.1/paths-data-16-t-ref.png        |  Bin 0 -> 7879 bytes
 .../reftests/svg1.1/paths-data-17-f-ref.png        |  Bin 0 -> 4464 bytes
 .../reftests/svg1.1/paths-data-18-f-ref.png        |  Bin 0 -> 4781 bytes
 .../reftests/svg1.1/paths-data-19-f-ref.png        |  Bin 0 -> 23515 bytes
 .../reftests/svg1.1/paths-data-20-f-ref.png        |  Bin 0 -> 9144 bytes
 .../reftests/svg1.1/pservers-grad-01-b-ref.png     |  Bin 0 -> 9758 bytes
 .../reftests/svg1.1/pservers-grad-02-b-ref.png     |  Bin 0 -> 22622 bytes
 .../reftests/svg1.1/pservers-grad-03-b-ref.png     |  Bin 0 -> 9805 bytes
 .../reftests/svg1.1/pservers-grad-04-b-ref.png     |  Bin 0 -> 24018 bytes
 .../reftests/svg1.1/pservers-grad-05-b-ref.png     |  Bin 0 -> 65037 bytes
 .../reftests/svg1.1/pservers-grad-06-b-ref.png     |  Bin 0 -> 21260 bytes
 .../reftests/svg1.1/pservers-grad-07-b-ref.png     |  Bin 0 -> 11051 bytes
 .../reftests/svg1.1/pservers-grad-08-b-ref.png     |  Bin 0 -> 38874 bytes
 .../reftests/svg1.1/pservers-grad-09-b-ref.png     |  Bin 0 -> 6207 bytes
 .../reftests/svg1.1/pservers-grad-10-b-ref.png     |  Bin 0 -> 9229 bytes
 .../reftests/svg1.1/pservers-grad-11-b-ref.png     |  Bin 0 -> 56357 bytes
 .../reftests/svg1.1/pservers-grad-12-b-ref.png     |  Bin 0 -> 23747 bytes
 .../reftests/svg1.1/pservers-grad-13-b-ref.png     |  Bin 0 -> 93434 bytes
 .../reftests/svg1.1/pservers-grad-14-b-ref.png     |  Bin 0 -> 24537 bytes
 .../reftests/svg1.1/pservers-grad-15-b-ref.png     |  Bin 0 -> 10180 bytes
 .../reftests/svg1.1/pservers-grad-16-b-ref.png     |  Bin 0 -> 4738 bytes
 .../reftests/svg1.1/pservers-grad-18-b-ref.png     |  Bin 0 -> 4733 bytes
 .../reftests/svg1.1/pservers-grad-21-b-ref.png     |  Bin 0 -> 11549 bytes
 .../reftests/svg1.1/pservers-grad-22-b-ref.png     |  Bin 0 -> 7605 bytes
 .../reftests/svg1.1/pservers-grad-23-f-ref.png     |  Bin 0 -> 6129 bytes
 .../reftests/svg1.1/pservers-grad-24-f-ref.png     |  Bin 0 -> 7313 bytes
 .../svg1.1/pservers-grad-stops-01-f-ref.png        |  Bin 0 -> 6356 bytes
 tests/resources/LiberationSans-Regular.ttf         |  Bin 0 -> 139764 bytes
 57 files changed, 69 insertions(+), 25 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 6206c59..f89d7ba 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -77,6 +77,7 @@ librsvg_@RSVG_API_MAJOR_VERSION@_la_CPPFLAGS = \
        -I$(top_builddir)                       \
        -DG_LOG_DOMAIN=\"librsvg\"              \
        -DLIBRSVG_DATADIR="\"$(datadir)\""      \
+       -DSRCDIR=\""${abs_top_srcdir}"\"        \
        -DRSVG_DISABLE_DEPRECATION_WARNINGS     \
        $(AM_CPPFLAGS)
 
diff --git a/rsvg-cairo-draw.c b/rsvg-cairo-draw.c
index c139ebe..6c6df1c 100644
--- a/rsvg-cairo-draw.c
+++ b/rsvg-cairo-draw.c
@@ -41,8 +41,6 @@
 
 #include <pango/pangocairo.h>
 
-static const cairo_user_data_key_t surface_pixel_data_key;
-
 static void
 _pattern_add_rsvg_color_stops (cairo_pattern_t * pattern,
                                GPtrArray * stops, guint32 current_color_rgb, guint8 opacity)
@@ -389,6 +387,34 @@ set_font_options_for_testing (PangoContext *context)
     cairo_font_options_destroy (font_options);
 }
 
+static void
+create_font_config_for_testing (RsvgCairoRender *render)
+{
+    const char *font_path = SRCDIR "/tests/resources/LiberationSans-Regular.ttf";
+
+    if (render->font_config_for_testing != NULL)
+        return;
+
+    render->font_config_for_testing = FcConfigCreate ();
+
+    if (!FcConfigAppFontAddFile (render->font_config_for_testing, (const FcChar8 *) font_path)) {
+        g_error ("Could not load font file \"%s\" for tests; aborting", font_path);
+    }
+}
+
+static PangoFontMap *
+get_font_map_for_testing (RsvgCairoRender *render)
+{
+    PangoFontMap *font_map;
+
+    create_font_config_for_testing (render);
+
+    font_map = pango_cairo_font_map_new_for_font_type (CAIRO_FONT_TYPE_FT);
+    pango_fc_font_map_set_config (PANGO_FC_FONT_MAP (font_map), render->font_config_for_testing);
+
+    return font_map;
+}
+
 PangoContext *
 rsvg_cairo_create_pango_context (RsvgDrawingCtx * ctx)
 {
@@ -396,7 +422,12 @@ rsvg_cairo_create_pango_context (RsvgDrawingCtx * ctx)
     PangoContext *context;
     RsvgCairoRender *render = RSVG_CAIRO_RENDER (ctx->render);
 
-    fontmap = pango_cairo_font_map_get_default ();
+    if (ctx->is_testing) {
+        fontmap = get_font_map_for_testing (render);
+    } else {
+        fontmap = pango_cairo_font_map_get_default ();
+    }
+
     context = pango_font_map_create_context (fontmap);
     pango_cairo_update_context (render->cr, context);
 
diff --git a/rsvg-cairo-render.c b/rsvg-cairo-render.c
index 46dfd74..546336b 100644
--- a/rsvg-cairo-render.c
+++ b/rsvg-cairo-render.c
@@ -46,6 +46,11 @@ rsvg_cairo_render_free (RsvgRender * self)
 
     /* TODO */
 
+    if (me->font_config_for_testing) {
+        FcConfigDestroy (me->font_config_for_testing);
+        me->font_config_for_testing = NULL;
+    }
+
     g_free (me);
 }
 
@@ -73,6 +78,7 @@ rsvg_cairo_render_new (cairo_t * cr, double width, double height)
     cairo_render->cr_stack = NULL;
     cairo_render->bb_stack = NULL;
     cairo_render->surfaces_stack = NULL;
+    cairo_render->font_config_for_testing = NULL;
 
     return cairo_render;
 }
diff --git a/rsvg-cairo-render.h b/rsvg-cairo-render.h
index 75e8489..d3bd6a7 100644
--- a/rsvg-cairo-render.h
+++ b/rsvg-cairo-render.h
@@ -30,6 +30,7 @@
 
 #include "rsvg-private.h"
 #include <cairo.h>
+#include <pango/pangofc-fontmap.h>
 
 G_BEGIN_DECLS typedef struct _RsvgCairoRender RsvgCairoRender;
 
@@ -48,6 +49,8 @@ struct _RsvgCairoRender {
     RsvgBbox bbox;
     GList *bb_stack;
     GList *surfaces_stack;
+
+    FcConfig *font_config_for_testing;
 };
 
 #define RSVG_CAIRO_RENDER(render) (_RSVG_RENDER_CIC ((render), RSVG_RENDER_TYPE_CAIRO, RsvgCairoRender))
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 7aab233..297ce57 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -44,27 +44,30 @@ INCLUDES = -I$(srcdir)                                                      \
           -DTOP_SRC_DIR="\"$(top_srcdir)\""                            \
          $(LIBRSVG_CFLAGS)
 
-dist_installed_test_data =                             \
-       $(wildcard $(srcdir)/fixtures/crash/*.svg)      \
-       $(wildcard $(srcdir)/fixtures/crash/*.png)      \
+dist_installed_test_data =                                     \
+       $(wildcard $(srcdir)/resources/*)                       \
+       $(wildcard $(srcdir)/fixtures/crash/*.svg)              \
+       $(wildcard $(srcdir)/fixtures/crash/*.png)              \
        $(wildcard $(srcdir)/fixtures/loading/*)        \
-       $(wildcard $(srcdir)/fixtures/reftests/*.svg)   \
-       $(wildcard $(srcdir)/fixtures/reftests/*.png)   \
-       $(wildcard $(srcdir)/fixtures/reftests/bugs*.svg)       \
-       $(wildcard $(srcdir)/fixtures/reftests/bugs*.png)       \
-       fixtures/dimensions/bug564527.svg               \
-       fixtures/dimensions/bug614018.svg               \
-       fixtures/dimensions/bug612951.svg               \
-       fixtures/dimensions/bug608102.svg               \
-       fixtures/dimensions/sub-rect-no-unit.svg        \
-       fixtures/styles/bug620693.svg                   \
-       fixtures/styles/bug614704.svg                   \
-       fixtures/styles/bug614606.svg                   \
-       fixtures/styles/important.svg                   \
-       fixtures/styles/svg-class.svg                   \
-       fixtures/styles/bug592207.svg                   \
-       fixtures/styles/bug338160.svg                   \
-       fixtures/styles/bug379629.svg                   \
-       fixtures/styles/bug614643.svg                   \
-       fixtures/styles/bug418823.svg                   \
+       $(wildcard $(srcdir)/fixtures/reftests/*.svg)           \
+       $(wildcard $(srcdir)/fixtures/reftests/*.png)           \
+       $(wildcard $(srcdir)/fixtures/reftests/bugs/*.svg)      \
+       $(wildcard $(srcdir)/fixtures/reftests/bugs/*.png)      \
+       $(wildcard $(srcdir)/fixtures/reftests/svg1.1/*.svg)    \
+       $(wildcard $(srcdir)/fixtures/reftests/svg1.1/*.png)    \
+       fixtures/dimensions/bug564527.svg                       \
+       fixtures/dimensions/bug614018.svg                       \
+       fixtures/dimensions/bug612951.svg                       \
+       fixtures/dimensions/bug608102.svg                       \
+       fixtures/dimensions/sub-rect-no-unit.svg                \
+       fixtures/styles/bug620693.svg                           \
+       fixtures/styles/bug614704.svg                           \
+       fixtures/styles/bug614606.svg                           \
+       fixtures/styles/important.svg                           \
+       fixtures/styles/svg-class.svg                           \
+       fixtures/styles/bug592207.svg                           \
+       fixtures/styles/bug338160.svg                           \
+       fixtures/styles/bug379629.svg                           \
+       fixtures/styles/bug614643.svg                           \
+       fixtures/styles/bug418823.svg                           \
        fixtures/styles/order.svg
diff --git a/tests/fixtures/reftests/bugs/749415-ref.png b/tests/fixtures/reftests/bugs/749415-ref.png
index 1e86261..86da500 100644
Binary files a/tests/fixtures/reftests/bugs/749415-ref.png and b/tests/fixtures/reftests/bugs/749415-ref.png 
differ
diff --git a/tests/fixtures/reftests/svg1.1/filters-color-02-b-ref.png 
b/tests/fixtures/reftests/svg1.1/filters-color-02-b-ref.png
new file mode 100644
index 0000000..6a7d566
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/filters-color-02-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/filters-composite-02-b-ref.png 
b/tests/fixtures/reftests/svg1.1/filters-composite-02-b-ref.png
new file mode 100644
index 0000000..c990889
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/filters-composite-02-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/painting-marker-01-f-ref.png 
b/tests/fixtures/reftests/svg1.1/painting-marker-01-f-ref.png
new file mode 100644
index 0000000..e003fd2
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/painting-marker-01-f-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/painting-marker-02-f-ref.png 
b/tests/fixtures/reftests/svg1.1/painting-marker-02-f-ref.png
new file mode 100644
index 0000000..ad1c3c4
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/painting-marker-02-f-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/painting-marker-03-f-ref.png 
b/tests/fixtures/reftests/svg1.1/painting-marker-03-f-ref.png
new file mode 100644
index 0000000..5a8ca5d
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/painting-marker-03-f-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/painting-marker-04-f-ref.png 
b/tests/fixtures/reftests/svg1.1/painting-marker-04-f-ref.png
new file mode 100644
index 0000000..ce6709b
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/painting-marker-04-f-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/painting-marker-06-f-ref.png 
b/tests/fixtures/reftests/svg1.1/painting-marker-06-f-ref.png
new file mode 100644
index 0000000..dda63fc
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/painting-marker-06-f-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/painting-marker-07-f-ref.png 
b/tests/fixtures/reftests/svg1.1/painting-marker-07-f-ref.png
new file mode 100644
index 0000000..dacd194
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/painting-marker-07-f-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/painting-marker-properties-01-f-ref.png 
b/tests/fixtures/reftests/svg1.1/painting-marker-properties-01-f-ref.png
new file mode 100644
index 0000000..198a338
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/painting-marker-properties-01-f-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/paths-data-01-t-ref.png 
b/tests/fixtures/reftests/svg1.1/paths-data-01-t-ref.png
new file mode 100644
index 0000000..24028ea
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/paths-data-01-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/paths-data-02-t-ref.png 
b/tests/fixtures/reftests/svg1.1/paths-data-02-t-ref.png
new file mode 100644
index 0000000..d9d0d04
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/paths-data-02-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/paths-data-03-f-ref.png 
b/tests/fixtures/reftests/svg1.1/paths-data-03-f-ref.png
new file mode 100644
index 0000000..685dc52
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/paths-data-03-f-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/paths-data-04-t-ref.png 
b/tests/fixtures/reftests/svg1.1/paths-data-04-t-ref.png
new file mode 100644
index 0000000..001e9a8
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/paths-data-04-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/paths-data-05-t-ref.png 
b/tests/fixtures/reftests/svg1.1/paths-data-05-t-ref.png
new file mode 100644
index 0000000..54f7e91
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/paths-data-05-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/paths-data-06-t-ref.png 
b/tests/fixtures/reftests/svg1.1/paths-data-06-t-ref.png
new file mode 100644
index 0000000..10a1706
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/paths-data-06-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/paths-data-07-t-ref.png 
b/tests/fixtures/reftests/svg1.1/paths-data-07-t-ref.png
new file mode 100644
index 0000000..3e50788
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/paths-data-07-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/paths-data-08-t-ref.png 
b/tests/fixtures/reftests/svg1.1/paths-data-08-t-ref.png
new file mode 100644
index 0000000..d032a50
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/paths-data-08-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/paths-data-09-t-ref.png 
b/tests/fixtures/reftests/svg1.1/paths-data-09-t-ref.png
new file mode 100644
index 0000000..39718e2
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/paths-data-09-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/paths-data-10-t-ref.png 
b/tests/fixtures/reftests/svg1.1/paths-data-10-t-ref.png
new file mode 100644
index 0000000..d3f9853
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/paths-data-10-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/paths-data-12-t-ref.png 
b/tests/fixtures/reftests/svg1.1/paths-data-12-t-ref.png
new file mode 100644
index 0000000..8f9ac65
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/paths-data-12-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/paths-data-13-t-ref.png 
b/tests/fixtures/reftests/svg1.1/paths-data-13-t-ref.png
new file mode 100644
index 0000000..9de9435
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/paths-data-13-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/paths-data-14-t-ref.png 
b/tests/fixtures/reftests/svg1.1/paths-data-14-t-ref.png
new file mode 100644
index 0000000..ea658ad
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/paths-data-14-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/paths-data-15-t-ref.png 
b/tests/fixtures/reftests/svg1.1/paths-data-15-t-ref.png
new file mode 100644
index 0000000..d294d90
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/paths-data-15-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/paths-data-16-t-ref.png 
b/tests/fixtures/reftests/svg1.1/paths-data-16-t-ref.png
new file mode 100644
index 0000000..a23ed48
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/paths-data-16-t-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/paths-data-17-f-ref.png 
b/tests/fixtures/reftests/svg1.1/paths-data-17-f-ref.png
new file mode 100644
index 0000000..c27f1e3
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/paths-data-17-f-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/paths-data-18-f-ref.png 
b/tests/fixtures/reftests/svg1.1/paths-data-18-f-ref.png
new file mode 100644
index 0000000..baafb1f
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/paths-data-18-f-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/paths-data-19-f-ref.png 
b/tests/fixtures/reftests/svg1.1/paths-data-19-f-ref.png
new file mode 100644
index 0000000..638f0bb
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/paths-data-19-f-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/paths-data-20-f-ref.png 
b/tests/fixtures/reftests/svg1.1/paths-data-20-f-ref.png
new file mode 100644
index 0000000..2da2620
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/paths-data-20-f-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-01-b-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-01-b-ref.png
new file mode 100644
index 0000000..a291725
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-01-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-02-b-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-02-b-ref.png
new file mode 100644
index 0000000..62cb8e5
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-02-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-03-b-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-03-b-ref.png
new file mode 100644
index 0000000..61010b0
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-03-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-04-b-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-04-b-ref.png
new file mode 100644
index 0000000..a0da181
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-04-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-05-b-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-05-b-ref.png
new file mode 100644
index 0000000..4185e16
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-05-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-06-b-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-06-b-ref.png
new file mode 100644
index 0000000..9e99fcb
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-06-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-07-b-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-07-b-ref.png
new file mode 100644
index 0000000..0ea7fd3
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-07-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-08-b-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-08-b-ref.png
new file mode 100644
index 0000000..7bc6422
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-08-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-09-b-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-09-b-ref.png
new file mode 100644
index 0000000..d1042a7
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-09-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-10-b-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-10-b-ref.png
new file mode 100644
index 0000000..9eea7bd
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-10-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-11-b-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-11-b-ref.png
new file mode 100644
index 0000000..d0b4530
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-11-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-12-b-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-12-b-ref.png
new file mode 100644
index 0000000..7655470
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-12-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-13-b-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-13-b-ref.png
new file mode 100644
index 0000000..cd6c367
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-13-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-14-b-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-14-b-ref.png
new file mode 100644
index 0000000..5eb1501
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-14-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-15-b-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-15-b-ref.png
new file mode 100644
index 0000000..bd392ff
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-15-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-16-b-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-16-b-ref.png
new file mode 100644
index 0000000..65506fa
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-16-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-18-b-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-18-b-ref.png
new file mode 100644
index 0000000..9422464
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-18-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-21-b-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-21-b-ref.png
new file mode 100644
index 0000000..744233e
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-21-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-22-b-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-22-b-ref.png
new file mode 100644
index 0000000..fcf5e2c
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-22-b-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-23-f-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-23-f-ref.png
new file mode 100644
index 0000000..6984bd0
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-23-f-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-24-f-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-24-f-ref.png
new file mode 100644
index 0000000..33d4aac
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-24-f-ref.png differ
diff --git a/tests/fixtures/reftests/svg1.1/pservers-grad-stops-01-f-ref.png 
b/tests/fixtures/reftests/svg1.1/pservers-grad-stops-01-f-ref.png
new file mode 100644
index 0000000..0b90dc2
Binary files /dev/null and b/tests/fixtures/reftests/svg1.1/pservers-grad-stops-01-f-ref.png differ
diff --git a/tests/resources/LiberationSans-Regular.ttf b/tests/resources/LiberationSans-Regular.ttf
new file mode 100644
index 0000000..4159df6
Binary files /dev/null and b/tests/resources/LiberationSans-Regular.ttf differ


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]