mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-06-19 11:18:30 +02:00
Fix test compilation when font-config is disabled
Building cairo without font-config fails because test/font-variations.c was getting compiled without freetype2. Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
parent
c6e12d33bf
commit
ccdb8e2307
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue