[cairo-commit] 2 commits - test/ft-text-antialias-none.c test/ft-text-antialias-none-ref.png test/ft-text-vertical-layout.c test/ft-text-vertical-layout-ref.png test/ft-text-vertical-layout-rgb24-ref.png test/ft-text-vertical-layout-svg-argb32-ref.png test/ft-text-vertical-layout-svg-rgb24-ref.png

罗晶华 Jinghua Luo jinghua at kemper.freedesktop.org
Mon Jun 19 00:55:58 PDT 2006


 dev/null                                        |binary
 test/ft-text-antialias-none-ref.png             |binary
 test/ft-text-antialias-none.c                   |    3 +++
 test/ft-text-vertical-layout-ref.png            |binary
 test/ft-text-vertical-layout-rgb24-ref.png      |    0 
 test/ft-text-vertical-layout-svg-argb32-ref.png |binary
 test/ft-text-vertical-layout-svg-rgb24-ref.png  |binary
 test/ft-text-vertical-layout.c                  |    5 +++++
 8 files changed, 8 insertions(+)

New commits:
diff-tree 2f59dd4a5e9f4ce3853b055620bbada4526e3f58 (from f5b6fc139c8e455b27df52139578d2546a826e6d)
Author: Jinghua Luo <sunmoon1997 at gmail.com>
Date:   Mon Jun 19 15:52:36 2006 +0800

    Turn hinting off to get consistent results for ft-text-vertical-layout test case.

diff --git a/test/ft-text-vertical-layout-ref.png b/test/ft-text-vertical-layout-ref.png
index ec6d2bc..d6214eb 100644
Binary files a/test/ft-text-vertical-layout-ref.png and b/test/ft-text-vertical-layout-ref.png differ
diff --git a/test/ft-text-vertical-layout-rgb24-ref.png b/test/ft-text-vertical-layout-rgb24-ref.png
deleted file mode 100644
index 6e4b84e..0000000
Binary files a/test/ft-text-vertical-layout-rgb24-ref.png and /dev/null differ
diff --git a/test/ft-text-vertical-layout-svg-argb32-ref.png b/test/ft-text-vertical-layout-svg-argb32-ref.png
index 88bd324..7b82d9a 100644
Binary files a/test/ft-text-vertical-layout-svg-argb32-ref.png and b/test/ft-text-vertical-layout-svg-argb32-ref.png differ
diff --git a/test/ft-text-vertical-layout-svg-rgb24-ref.png b/test/ft-text-vertical-layout-svg-rgb24-ref.png
index 88bd324..bcddaf2 100644
Binary files a/test/ft-text-vertical-layout-svg-rgb24-ref.png and b/test/ft-text-vertical-layout-svg-rgb24-ref.png differ
diff --git a/test/ft-text-vertical-layout.c b/test/ft-text-vertical-layout.c
index 1c15a20..9aa776d 100644
--- a/test/ft-text-vertical-layout.c
+++ b/test/ft-text-vertical-layout.c
@@ -52,6 +52,11 @@ create_scaled_font (cairo_t * cr)
 
     font_options = cairo_font_options_create ();
 
+    /* disable hinting */
+    cairo_font_options_set_hint_style (font_options, CAIRO_HINT_STYLE_NONE);
+    /* enable antialias and override screen settings */
+    cairo_font_options_set_antialias (font_options, CAIRO_ANTIALIAS_GRAY);
+
     pattern = FcPatternCreate ();
 
     FcPatternAddString (pattern, FC_FAMILY, (FcChar8 *)"AR PL KaitiM GB");
diff-tree f5b6fc139c8e455b27df52139578d2546a826e6d (from ddc01a3c5530aa9480eb19aded7ba08f97529440)
Author: Jinghua Luo <sunmoon1997 at gmail.com>
Date:   Mon Jun 19 15:51:43 2006 +0800

    Turn hinting off to get consistent results for ft-text-antialias-none test case.

diff --git a/test/ft-text-antialias-none-ref.png b/test/ft-text-antialias-none-ref.png
index f293c94..cb0c132 100644
Binary files a/test/ft-text-antialias-none-ref.png and b/test/ft-text-antialias-none-ref.png differ
diff --git a/test/ft-text-antialias-none.c b/test/ft-text-antialias-none.c
index 3092e8d..8aaaf05 100644
--- a/test/ft-text-antialias-none.c
+++ b/test/ft-text-antialias-none.c
@@ -52,6 +52,9 @@ create_scaled_font (cairo_t * cr)
 
     font_options = cairo_font_options_create ();
 
+    /* disable hinting */
+    cairo_font_options_set_hint_style (font_options, CAIRO_HINT_STYLE_NONE);
+
     pattern = FcPatternCreate ();
 
     FcPatternAddString (pattern, FC_FAMILY, (FcChar8 *)"Bitstream vera sans");


More information about the cairo-commit mailing list