test: Fix compile with older FreeType without FT_Get_Var_Design_Coordinates

Extend earlier fix to the tests as well.
This commit is contained in:
Bryce Harrington 2018-01-18 21:02:12 -08:00
parent 5795ac9d90
commit 4a09fec668

View file

@ -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];