Alexandre Bique
2018-05-18 09:39:33 UTC
Hi,
Building cairo without font-config fails because test/font-variations.c
does not build.
Here is the fix.
Regards,
Alex.
--- test/font-variations.c 2018-05-18 11:24:02.727369293 +0200
+++ test/font-variations.c 2018-05-18 11:32:53.597510618 +0200
@@ -27,14 +27,17 @@
#include <assert.h>
-#if CAIRO_HAS_FC_FONT
+// This test requires freetype2
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_MULTIPLE_MASTERS_H
+
+#if CAIRO_HAS_FC_FONT
#include <fontconfig/fontconfig.h>
-#include "cairo-ft.h"
#endif
+#include "cairo-ft.h"
+
#define FloatToFixed(f) ((FT_Fixed)((f)*65536))
static cairo_test_status_t
Building cairo without font-config fails because test/font-variations.c
does not build.
Here is the fix.
Regards,
Alex.
--- test/font-variations.c 2018-05-18 11:24:02.727369293 +0200
+++ test/font-variations.c 2018-05-18 11:32:53.597510618 +0200
@@ -27,14 +27,17 @@
#include <assert.h>
-#if CAIRO_HAS_FC_FONT
+// This test requires freetype2
#include <ft2build.h>
#include FT_FREETYPE_H
#include FT_MULTIPLE_MASTERS_H
+
+#if CAIRO_HAS_FC_FONT
#include <fontconfig/fontconfig.h>
-#include "cairo-ft.h"
#endif
+#include "cairo-ft.h"
+
#define FloatToFixed(f) ((FT_Fixed)((f)*65536))
static cairo_test_status_t
--
Alexandre Bique
Alexandre Bique