[librsvg] Use a hard-coded font file to render test images, for predictable font rendering
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg] Use a hard-coded font file to render test images, for predictable font rendering
- Date: Wed, 4 Jan 2017 21:30:21 +0000 (UTC)
commit ec3353e89a0dc0063c74c61483ed894cc96341ae
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 | 1 +
tests/fixtures/reftests/bugs/340047-ref.png | Bin 4707 -> 4779 bytes
tests/fixtures/reftests/bugs/749415-ref.png | Bin 21402 -> 21862 bytes
tests/fixtures/reftests/bugs/760180-ref.png | Bin 8698 -> 8640 bytes
.../reftests/svg1.1/filters-color-02-b-ref.png | Bin 6066 -> 6231 bytes
.../reftests/svg1.1/filters-composite-02-b-ref.png | Bin 15899 -> 16647 bytes
.../reftests/svg1.1/painting-marker-01-f-ref.png | Bin 8581 -> 8454 bytes
.../reftests/svg1.1/painting-marker-02-f-ref.png | Bin 9237 -> 9172 bytes
.../reftests/svg1.1/painting-marker-03-f-ref.png | Bin 28067 -> 29006 bytes
.../reftests/svg1.1/painting-marker-04-f-ref.png | Bin 26711 -> 27598 bytes
.../reftests/svg1.1/painting-marker-06-f-ref.png | Bin 8698 -> 8640 bytes
.../reftests/svg1.1/painting-marker-07-f-ref.png | Bin 5001 -> 5158 bytes
.../svg1.1/painting-marker-properties-01-f-ref.png | Bin 6097 -> 6175 bytes
.../reftests/svg1.1/paths-data-01-t-ref.png | Bin 25377 -> 25436 bytes
.../reftests/svg1.1/paths-data-02-t-ref.png | Bin 32835 -> 32917 bytes
.../reftests/svg1.1/paths-data-03-f-ref.png | Bin 30742 -> 30956 bytes
.../reftests/svg1.1/paths-data-04-t-ref.png | Bin 17951 -> 18160 bytes
.../reftests/svg1.1/paths-data-05-t-ref.png | Bin 15946 -> 16048 bytes
.../reftests/svg1.1/paths-data-06-t-ref.png | Bin 7143 -> 7255 bytes
.../reftests/svg1.1/paths-data-07-t-ref.png | Bin 6473 -> 6646 bytes
.../reftests/svg1.1/paths-data-08-t-ref.png | Bin 18934 -> 19314 bytes
.../reftests/svg1.1/paths-data-09-t-ref.png | Bin 17284 -> 17595 bytes
.../reftests/svg1.1/paths-data-10-t-ref.png | Bin 20633 -> 20995 bytes
.../reftests/svg1.1/paths-data-12-t-ref.png | Bin 9603 -> 9704 bytes
.../reftests/svg1.1/paths-data-13-t-ref.png | Bin 4400 -> 4526 bytes
.../reftests/svg1.1/paths-data-14-t-ref.png | Bin 12393 -> 12525 bytes
.../reftests/svg1.1/paths-data-15-t-ref.png | Bin 5862 -> 6001 bytes
.../reftests/svg1.1/paths-data-16-t-ref.png | Bin 7651 -> 7879 bytes
.../reftests/svg1.1/paths-data-17-f-ref.png | Bin 4287 -> 4464 bytes
.../reftests/svg1.1/paths-data-18-f-ref.png | Bin 4644 -> 4781 bytes
.../reftests/svg1.1/paths-data-19-f-ref.png | Bin 23376 -> 23515 bytes
.../reftests/svg1.1/paths-data-20-f-ref.png | Bin 8996 -> 9144 bytes
.../reftests/svg1.1/pservers-grad-01-b-ref.png | Bin 9241 -> 9758 bytes
.../reftests/svg1.1/pservers-grad-02-b-ref.png | Bin 22010 -> 22622 bytes
.../reftests/svg1.1/pservers-grad-03-b-ref.png | Bin 9534 -> 9805 bytes
.../reftests/svg1.1/pservers-grad-04-b-ref.png | Bin 23348 -> 24018 bytes
.../reftests/svg1.1/pservers-grad-05-b-ref.png | Bin 63786 -> 65037 bytes
.../reftests/svg1.1/pservers-grad-06-b-ref.png | Bin 20711 -> 21260 bytes
.../reftests/svg1.1/pservers-grad-07-b-ref.png | Bin 10707 -> 11051 bytes
.../reftests/svg1.1/pservers-grad-08-b-ref.png | Bin 37401 -> 38874 bytes
.../reftests/svg1.1/pservers-grad-09-b-ref.png | Bin 5885 -> 6207 bytes
.../reftests/svg1.1/pservers-grad-10-b-ref.png | Bin 8955 -> 9229 bytes
.../reftests/svg1.1/pservers-grad-11-b-ref.png | Bin 56219 -> 56357 bytes
.../reftests/svg1.1/pservers-grad-12-b-ref.png | Bin 23336 -> 23747 bytes
.../reftests/svg1.1/pservers-grad-13-b-ref.png | Bin 93256 -> 93434 bytes
.../reftests/svg1.1/pservers-grad-14-b-ref.png | Bin 24421 -> 24537 bytes
.../reftests/svg1.1/pservers-grad-15-b-ref.png | Bin 10028 -> 10180 bytes
.../reftests/svg1.1/pservers-grad-16-b-ref.png | Bin 4619 -> 4738 bytes
.../reftests/svg1.1/pservers-grad-18-b-ref.png | Bin 4613 -> 4733 bytes
.../reftests/svg1.1/pservers-grad-21-b-ref.png | Bin 11389 -> 11549 bytes
.../reftests/svg1.1/pservers-grad-22-b-ref.png | Bin 7414 -> 7605 bytes
.../reftests/svg1.1/pservers-grad-23-f-ref.png | Bin 6130 -> 6129 bytes
.../reftests/svg1.1/pservers-grad-24-f-ref.png | Bin 7252 -> 7313 bytes
.../svg1.1/pservers-grad-stops-01-f-ref.png | Bin 6353 -> 6356 bytes
tests/resources/LiberationSans-Regular.ttf | Bin 0 -> 139764 bytes
59 files changed, 46 insertions(+), 2 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 3343a19..a4b538b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -116,6 +116,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 dfbabc7..4fd9f36 100644
--- a/rsvg-cairo-draw.c
+++ b/rsvg-cairo-draw.c
@@ -40,7 +40,7 @@
#include <string.h>
#include <pango/pangocairo.h>
-
+#include <pango/pangofc-fontmap.h>
static gboolean
add_color_stop_to_gradient (RsvgNode *node, gpointer data)
{
@@ -381,6 +381,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)
{
@@ -389,7 +417,12 @@ rsvg_cairo_create_pango_context (RsvgDrawingCtx * ctx)
RsvgCairoRender *render = RSVG_CAIRO_RENDER (ctx->render);
double dpi_y;
- 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 167bf64..7eba929 100644
--- a/rsvg-cairo-render.c
+++ b/rsvg-cairo-render.c
@@ -48,6 +48,11 @@ rsvg_cairo_render_free (RsvgRender * self)
g_assert (me->bb_stack == NULL);
g_assert (me->surfaces_stack == NULL);
+ if (me->font_config_for_testing) {
+ FcConfigDestroy (me->font_config_for_testing);
+ me->font_config_for_testing = NULL;
+ }
+
g_free (me);
}
@@ -76,6 +81,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;
cairo_matrix_init_identity (&matrix);
rsvg_bbox_init (&cairo_render->bbox, &matrix);
diff --git a/rsvg-cairo-render.h b/rsvg-cairo-render.h
index d9bfd57..50aca51 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 e18536b..7f9b24e 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -38,6 +38,7 @@ INCLUDES = -I$(srcdir) \
$(LIBRSVG_CFLAGS)
dist_installed_test_data = \
+ $(wildcard $(srcdir)/resources/*) \
$(wildcard $(srcdir)/fixtures/crash/*.svg) \
$(wildcard $(srcdir)/fixtures/crash/*.png) \
$(wildcard $(srcdir)/fixtures/reftests/*.svg) \
diff --git a/tests/fixtures/reftests/bugs/340047-ref.png b/tests/fixtures/reftests/bugs/340047-ref.png
index 4d3db68..92be7e3 100644
Binary files a/tests/fixtures/reftests/bugs/340047-ref.png and b/tests/fixtures/reftests/bugs/340047-ref.png
differ
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/bugs/760180-ref.png b/tests/fixtures/reftests/bugs/760180-ref.png
index 7bfab68..dda63fc 100644
Binary files a/tests/fixtures/reftests/bugs/760180-ref.png and b/tests/fixtures/reftests/bugs/760180-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
index 15c825c..6a7d566 100644
Binary files a/tests/fixtures/reftests/svg1.1/filters-color-02-b-ref.png 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
index 5cdb371..c990889 100644
Binary files a/tests/fixtures/reftests/svg1.1/filters-composite-02-b-ref.png 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
index b2f3c51..e003fd2 100644
Binary files a/tests/fixtures/reftests/svg1.1/painting-marker-01-f-ref.png 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
index ed3c51c..ad1c3c4 100644
Binary files a/tests/fixtures/reftests/svg1.1/painting-marker-02-f-ref.png 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
index 2f5d9dd..5a8ca5d 100644
Binary files a/tests/fixtures/reftests/svg1.1/painting-marker-03-f-ref.png 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
index 5a02a69..ce6709b 100644
Binary files a/tests/fixtures/reftests/svg1.1/painting-marker-04-f-ref.png 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
index 7bfab68..dda63fc 100644
Binary files a/tests/fixtures/reftests/svg1.1/painting-marker-06-f-ref.png 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
index 4c34695..dacd194 100644
Binary files a/tests/fixtures/reftests/svg1.1/painting-marker-07-f-ref.png 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
index dfecaf6..198a338 100644
Binary files a/tests/fixtures/reftests/svg1.1/painting-marker-properties-01-f-ref.png 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
index 56ac70b..24028ea 100644
Binary files a/tests/fixtures/reftests/svg1.1/paths-data-01-t-ref.png 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
index cb78d75..d9d0d04 100644
Binary files a/tests/fixtures/reftests/svg1.1/paths-data-02-t-ref.png 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
index 439febd..685dc52 100644
Binary files a/tests/fixtures/reftests/svg1.1/paths-data-03-f-ref.png 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
index b3ffe55..001e9a8 100644
Binary files a/tests/fixtures/reftests/svg1.1/paths-data-04-t-ref.png 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
index 5ef9389..54f7e91 100644
Binary files a/tests/fixtures/reftests/svg1.1/paths-data-05-t-ref.png 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
index 2481b16..10a1706 100644
Binary files a/tests/fixtures/reftests/svg1.1/paths-data-06-t-ref.png 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
index 9a37e9c..3e50788 100644
Binary files a/tests/fixtures/reftests/svg1.1/paths-data-07-t-ref.png 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
index 0be2aac..d032a50 100644
Binary files a/tests/fixtures/reftests/svg1.1/paths-data-08-t-ref.png 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
index 0adab9d..39718e2 100644
Binary files a/tests/fixtures/reftests/svg1.1/paths-data-09-t-ref.png 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
index 4d4dda5..d3f9853 100644
Binary files a/tests/fixtures/reftests/svg1.1/paths-data-10-t-ref.png 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
index c08023f..8f9ac65 100644
Binary files a/tests/fixtures/reftests/svg1.1/paths-data-12-t-ref.png 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
index d51abb4..9de9435 100644
Binary files a/tests/fixtures/reftests/svg1.1/paths-data-13-t-ref.png 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
index f9dc304..ea658ad 100644
Binary files a/tests/fixtures/reftests/svg1.1/paths-data-14-t-ref.png 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
index 6b12cdc..d294d90 100644
Binary files a/tests/fixtures/reftests/svg1.1/paths-data-15-t-ref.png 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
index 1bc18a1..a23ed48 100644
Binary files a/tests/fixtures/reftests/svg1.1/paths-data-16-t-ref.png 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
index 11ceca6..c27f1e3 100644
Binary files a/tests/fixtures/reftests/svg1.1/paths-data-17-f-ref.png 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
index 4b12964..baafb1f 100644
Binary files a/tests/fixtures/reftests/svg1.1/paths-data-18-f-ref.png 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
index 86ace22..638f0bb 100644
Binary files a/tests/fixtures/reftests/svg1.1/paths-data-19-f-ref.png 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
index 4ba751f..2da2620 100644
Binary files a/tests/fixtures/reftests/svg1.1/paths-data-20-f-ref.png 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
index c18d0af..a291725 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-01-b-ref.png 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
index 9a39d35..62cb8e5 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-02-b-ref.png 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
index 733b905..61010b0 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-03-b-ref.png 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
index d5a4d03..a0da181 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-04-b-ref.png 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
index c2f703f..4185e16 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-05-b-ref.png 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
index c52998e..9e99fcb 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-06-b-ref.png 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
index 096d8e7..0ea7fd3 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-07-b-ref.png 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
index 04d53c2..7bc6422 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-08-b-ref.png 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
index decf5ac..d1042a7 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-09-b-ref.png 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
index 56736a5..9eea7bd 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-10-b-ref.png 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
index 2cf8e06..d0b4530 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-11-b-ref.png 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
index d14bb4a..7655470 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-12-b-ref.png 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
index 7a6ff29..cd6c367 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-13-b-ref.png 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
index c4a22c8..5eb1501 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-14-b-ref.png 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
index 7860d14..bd392ff 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-15-b-ref.png 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
index 174a657..65506fa 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-16-b-ref.png 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
index 2b96372..9422464 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-18-b-ref.png 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
index a6a27cb..744233e 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-21-b-ref.png 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
index b85c9d1..fcf5e2c 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-22-b-ref.png 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
index 89dec23..6984bd0 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-23-f-ref.png 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
index c70dc7f..33d4aac 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-24-f-ref.png 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
index d1e32a9..0b90dc2 100644
Binary files a/tests/fixtures/reftests/svg1.1/pservers-grad-stops-01-f-ref.png 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]