Fix RAQM feature detection

This commit is contained in:
wiredfool 2017-06-13 07:57:40 -07:00
parent 2528743d8c
commit 42831098ac
3 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,6 @@ modules = {
"pil": "PIL._imaging",
"tkinter": "PIL._tkinter_finder",
"freetype2": "PIL._imagingft",
"raqm": "PIL._imagingft",
"littlecms2": "PIL._imagingcms",
"webp": "PIL._webp",
}
@ -46,6 +45,7 @@ def get_supported_codecs():
features = {
"webp_mux": ("PIL._webp", 'HAVE_WEBPMUX'),
"transp_webp": ("PIL._webp", "HAVE_TRANSPARENCY"),
"raqm": ("PIL._imagingft", "HAVE_RAQM")
}
def check_feature(feature):

View File

@ -828,7 +828,7 @@ setup_module(PyObject* m) {
#else
v = PyBool_FromLong(0);
#endif
PyDict_SetItemString(d, "have_raqm", v);
PyDict_SetItemString(d, "HAVE_RAQM", v);
return 0;
}

View File

@ -184,7 +184,7 @@ if __name__ == "__main__":
("jpg_2000", "OPENJPEG (JPEG2000)"),
("zlib", "ZLIB (PNG/ZIP)"),
("libtiff", "LIBTIFF"),
("raqm", "RAQM")
("raqm", "RAQM (Bidirectional Text)")
]:
if features.check(name):
print("---", feature, "support ok")