mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-28 19:06:18 +03:00
declare text_layout_raqm only when we HAVE_RAQM
This commit is contained in:
parent
4ed6962364
commit
74e4ccc0ec
|
@ -205,6 +205,7 @@ font_getchar(PyObject* string, int index, FT_ULong* char_out)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_RAQM
|
||||||
static size_t
|
static size_t
|
||||||
text_layout_raqm(PyObject* string, FontObject* self, const char* dir,
|
text_layout_raqm(PyObject* string, FontObject* self, const char* dir,
|
||||||
PyObject *features ,GlyphInfo **glyph_info, int mask)
|
PyObject *features ,GlyphInfo **glyph_info, int mask)
|
||||||
|
@ -342,6 +343,7 @@ failed:
|
||||||
raqm_destroy (rq);
|
raqm_destroy (rq);
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static size_t
|
static size_t
|
||||||
text_layout_fallback(PyObject* string, FontObject* self, const char* dir,
|
text_layout_fallback(PyObject* string, FontObject* self, const char* dir,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user