From 396c8c948667c946058252b65b9f0bd0dbbae5b1 Mon Sep 17 00:00:00 2001 From: nulano Date: Wed, 22 Apr 2020 00:30:28 +0200 Subject: [PATCH] fix basic layout --- src/_imagingft.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/_imagingft.c b/src/_imagingft.c index 637812a2f..ac4e28ebc 100644 --- a/src/_imagingft.c +++ b/src/_imagingft.c @@ -585,7 +585,8 @@ text_layout_fallback(PyObject* string, FontObject* self, const char* dir, PyObje } (*glyph_info)[i].x_advance = glyph->metrics.horiAdvance; - (*glyph_info)[i].y_advance = glyph->metrics.vertAdvance; + // y_advance is only used in ttb, which is not supported by basic layout + (*glyph_info)[i].y_advance = 0; last_index = (*glyph_info)[i].index; (*glyph_info)[i].cluster = ch; }