[cairo-commit] test/truetype-tables.c

M. Joonas Pihlaja joonas at kemper.freedesktop.org
Thu Sep 11 23:40:57 PDT 2008


 test/truetype-tables.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 4e731f7c907a3b5bf2da0d73a699bcf79c1f2c85
Author: M Joonas Pihlaja <jpihlaja at cc.helsinki.fi>
Date:   Fri Sep 12 09:39:58 2008 +0300

    [test] Only test truetype-tables if we can.
    
    Doesn't build without CAIRO_HAS_FONT_SUBSET.

diff --git a/test/truetype-tables.c b/test/truetype-tables.c
index 37f515a..718af3a 100644
--- a/test/truetype-tables.c
+++ b/test/truetype-tables.c
@@ -45,7 +45,7 @@ main (void)
 	    cairo_test_log (&ctx, "sizeof (%s): got %d, expected %d", #st, (int)sizeof (st), sz); \
 	    ret = CAIRO_TEST_FAILURE; \
 	}
-
+#if CAIRO_HAS_FONT_SUBSET
     check (tt_head_t,	54);
     check (tt_hhea_t,	36);
     check (tt_maxp_t,	32);
@@ -54,7 +54,7 @@ main (void)
     check (tt_name_t,	18);
     check (tt_composite_glyph_t,	18);
     check (tt_glyph_data_t,	28);
-
+#endif
     cairo_test_fini (&ctx);
 
     return ret;


More information about the cairo-commit mailing list