Add rendering tests

This commit is contained in:
Kovid Goyal
2017-11-05 12:31:50 +05:30
parent ce0e5a893f
commit da8bf5adc7
3 changed files with 26 additions and 9 deletions

View File

@@ -313,6 +313,7 @@ display_name(Face *self) {
#define R(x) if (self->x) { Py_INCREF(self->x); return self->x; }
R(full_name); R(postscript_name); R(family_name); R(path);
#undef R
Py_RETURN_NONE;
}
// Boilerplate {{{
@@ -336,6 +337,7 @@ static PyMemberDef members[] = {
static PyMethodDef methods[] = {
METHODB(face_for_text, METH_VARARGS),
METHODB(display_name, METH_NOARGS),
{NULL} /* Sentinel */
};