Make the hinting defaults zero when missing

This commit is contained in:
Kovid Goyal 2018-04-22 20:34:00 +05:30
parent 99ff92a5a7
commit 9c43707f40
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -227,8 +227,8 @@ face_from_descriptor(PyObject *descriptor) {
long hint_style;
D(path, PyUnicode_AsUTF8, false, "");
D(index, PyLong_AsLong, true, 0);
D(hinting, PyObject_IsTrue, true, 1);
D(hint_style, PyLong_AsLong, true, 1);
D(hinting, PyObject_IsTrue, true, 0);
D(hint_style, PyLong_AsLong, true, 0);
#undef D
Face *self = (Face *)Face_Type.tp_alloc(&Face_Type, 0);
if (self != NULL) {