Fix shaping test

This commit is contained in:
Kovid Goyal 2019-08-10 08:58:02 +05:30
parent 57542fc204
commit 685497fc8c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -998,6 +998,8 @@ test_shape(PyObject UNUSED *self, PyObject *args) {
if (face == NULL) return NULL;
font = calloc(1, sizeof(Font));
font->face = face;
font->hb_features[0] = hb_features[CALT_FEATURE];
font->num_hb_features = 1;
} else {
FontGroup *fg = font_groups;
font = fg->fonts + fg->medium_font_idx;