Make the showcase output a little nicer

This commit is contained in:
Kovid Goyal
2017-11-05 12:07:40 +05:30
parent c8b7b49d56
commit ce0e5a893f
4 changed files with 51 additions and 4 deletions

View File

@@ -308,6 +308,12 @@ repr(Face *self) {
);
}
static PyObject*
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
}
// Boilerplate {{{