[cairo-commit] test/user-font.c

Behdad Esfahbod behdad at kemper.freedesktop.org
Wed Oct 22 22:46:41 PDT 2008


 test/user-font.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit d692284ab8f90d7402621f1a07aaddcf11d87ef5
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Oct 23 01:45:35 2008 -0400

    [test/user-font] Exercise glyph 0
    
    Previously there was a bug in cairo and/or poppler causing glyph 0 of
    user fonts to not show up.  This is fixed now, so we exercise glyph 0.

diff --git a/test/user-font.c b/test/user-font.c
index d90cd49..6688ce0 100644
--- a/test/user-font.c
+++ b/test/user-font.c
@@ -158,10 +158,6 @@ _user_font_face_create (cairo_font_face_t **out)
      *     13 14 15
      */
     static const test_scaled_font_glyph_t glyphs [] = {
-	{ '\0', 1, { END_GLYPH } }, /* Poppler has a bug assuming glyph 0 is .notdef */
-	{ ' ',  1, { END_GLYPH } },
-	{ '-',  2, { 7, 8, STROKE, END_GLYPH } },
-	{ '.',  1, { 10, 10, STROKE, END_GLYPH } },
 	{ 'a',  3, { 4, 6, 12, 10, 7, 9, STROKE, END_GLYPH } },
 	{ 'c',  3, { 6, 4, 10, 12, STROKE, END_GLYPH } },
 	{ 'e',  3, { 12, 10, 4, 6, 9, 7, STROKE, END_GLYPH } },
@@ -177,6 +173,9 @@ _user_font_face_create (cairo_font_face_t **out)
 	{ 't',  3, { 2, 11, 12, STROKE, 4, 6, STROKE, END_GLYPH } },
 	{ 'u',  3, { 4, 10, 12, 6, STROKE, END_GLYPH } },
 	{ 'z',  3, { 4, 6, 10, 12, STROKE, END_GLYPH } },
+	{ ' ',  1, { END_GLYPH } },
+	{ '-',  2, { 7, 8, STROKE, END_GLYPH } },
+	{ '.',  1, { 10, 10, STROKE, END_GLYPH } },
 	{  -1,  0, { END_GLYPH } },
     };
 


More information about the cairo-commit mailing list