detect FreeType / HarfBuzz features

This commit is contained in:
nulano 2021-09-27 22:50:30 +02:00
parent aeb3c810d0
commit 6565d13275

View File

@ -39,6 +39,21 @@
#include <hb.h> #include <hb.h>
#include <hb-ft.h> #include <hb-ft.h>
#if FREETYPE_MAJOR > 2 || \
FREETYPE_MAJOR == 2 && FREETYPE_MINOR >= 11
#define HAVE_FT_GET_TRANSFORM
#endif
#if HB_VERSION_ATLEAST(2, 0, 0)
#define HAVE_HB_BUFFER_SET_INVISIBLE_GLYPH
#endif
#if HB_VERSION_ATLEAST(1, 8, 0)
#define HAVE_DECL_HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES 1
#else
#define HAVE_DECL_HB_BUFFER_FLAG_REMOVE_DEFAULT_IGNORABLES 0
#endif
#include "raqm.h" #include "raqm.h"
#if FRIBIDI_MAJOR_VERSION >= 1 #if FRIBIDI_MAJOR_VERSION >= 1