[cairo-commit] test/user-font-rescale.c test/user-font-rescale-ps-ref.png test/user-font-rescale-ref.png
Adrian Johnson
ajohnson at kemper.freedesktop.org
Tue Sep 16 03:01:13 PDT 2008
test/user-font-rescale-ps-ref.png |binary
test/user-font-rescale-ref.png |binary
test/user-font-rescale.c | 6 +++---
3 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit e880d0f956317c760c565cd69ea2966e7c7f24f1
Author: Adrian Johnson <ajohnson at redneon.com>
Date: Tue Sep 16 19:13:50 2008 +0930
Change user-font-rescale test to use opaque colors
The combination of the initial cairo_paint() and the translucent text
colors were causing image fallbacks that prevented the PS type 3 font
embedding from being tested.
diff --git a/test/user-font-rescale-ps-ref.png b/test/user-font-rescale-ps-ref.png
new file mode 100644
index 0000000..7e112da
Binary files /dev/null and b/test/user-font-rescale-ps-ref.png differ
diff --git a/test/user-font-rescale-ref.png b/test/user-font-rescale-ref.png
index 39bce60..4478130 100644
Binary files a/test/user-font-rescale-ref.png and b/test/user-font-rescale-ref.png differ
diff --git a/test/user-font-rescale.c b/test/user-font-rescale.c
index 6aaa9ad..c543daa 100644
--- a/test/user-font-rescale.c
+++ b/test/user-font-rescale.c
@@ -311,7 +311,7 @@ draw (cairo_t *cr, int width, int height)
cairo_font_extents (cr, &font_extents);
cairo_text_extents (cr, text, &extents);
- cairo_set_source_rgba (cr, 0, 0, 0, 0.5);
+ cairo_set_source_rgb (cr, 0, 0, 0);
cairo_move_to (cr, BORDER, BORDER + font_extents.ascent);
cairo_show_text (cr, text);
@@ -324,7 +324,7 @@ draw (cairo_t *cr, int width, int height)
rescaled = get_user_font_face (cairo_get_font_face (cr), text, old);
cairo_set_font_face (cr, rescaled);
- cairo_set_source_rgba (cr, 0, 0, 1, 0.5);
+ cairo_set_source_rgb (cr, 0, 0, 1);
cairo_move_to (cr, BORDER, BORDER + font_extents.height + 2*BORDER + font_extents.ascent);
cairo_show_text (cr, text);
@@ -336,7 +336,7 @@ draw (cairo_t *cr, int width, int height)
CAIRO_FONT_SLANT_NORMAL,
CAIRO_FONT_WEIGHT_NORMAL);
- cairo_set_source_rgba (cr, 0, 0, 1, 0.5);
+ cairo_set_source_rgb (cr, 0, 0, 1);
cairo_move_to (cr, BORDER, BORDER + 2*font_extents.height + 4*BORDER + font_extents.ascent);
cairo_show_text (cr, text);
More information about the cairo-commit
mailing list