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

Bryce Harrington bryce at kemper.freedesktop.org
Fri Jan 19 05:07:22 UTC 2018


 test/font-variations.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 4a09fec668395532a1b8d3a2344be5eca6c61d14
Author: Bryce Harrington <bryce at osg.samsung.com>
Date:   Thu Jan 18 21:02:12 2018 -0800

    test: Fix compile with older FreeType without FT_Get_Var_Design_Coordinates
    
    Extend earlier fix to the tests as well.

diff --git a/test/font-variations.c b/test/font-variations.c
index 68071d077..85428a79f 100644
--- a/test/font-variations.c
+++ b/test/font-variations.c
@@ -114,11 +114,13 @@ test_variation (cairo_test_context_t *ctx,
         return CAIRO_TEST_FAILURE;
     }
 
+#ifdef HAVE_FT_GET_VAR_DESIGN_COORDINATES
     ret = FT_Get_Var_Design_Coordinates (ft_face, 20, coords);
     if (ret != 0) {
         cairo_test_log (ctx, "Failed to get coords");
         return CAIRO_TEST_FAILURE;
     }
+#endif
 
     for (i = 0; i < ft_mm_var->num_axis; i++) {
         FT_Var_Axis *axis = &ft_mm_var->axis[i];


More information about the cairo-commit mailing list